Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError when set_outlet_name used with hyphen #43

Open
DavidAntliff opened this issue Mar 13, 2019 · 0 comments
Open

NameError when set_outlet_name used with hyphen #43

DavidAntliff opened this issue Mar 13, 2019 · 0 comments

Comments

@DavidAntliff
Copy link

I expect dlipower set_outlet_name 1 foo-bar to set the outlet name to "foo-bar", but instead it throws this NameError exception:

$ dlipower set_outlet_name 1 "foo-bar"
Traceback (most recent call last):
  File "/home/.../dlipower", line 117, in <module>
    outlet_range = _block_to_list(','.join(args[1:]))
  File "/home/.../dlipower", line 49, in _block_to_list
    for value in outlet_range(int(val1), int(val2) + 1):
NameError: name 'outlet_range' is not defined

Setting to "foobar" works. I suspect the name is being interpreted as some kind of range but it's not clear how to escape the - character to avoid this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant