Opened 13 years ago
Closed 13 years ago
#1954 closed bug (Fixed)
config -s listen_interface → "invalid literal for float"
Reported by: | nixar | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.4 |
Component: | Console UI | Version: | 1.3.3 |
Keywords: | Cc: |
Description
See discussion here: http://forum.deluge-torrent.org/viewtopic.php?f=7&t=34307
$ deluge-console 'config -s listen_interface 192.168.0.2' invalid literal for float(): 192.168.0.2 [ERROR ] 13:05:59 main:323 invalid literal for float(): 192.168.0.2 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/deluge/ui/console/main.py", line 320, in do_command ret = self._commands[cmd].handle(*args, **options.__dict__) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 98, in handle return self._set_config(*args, **options) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 134, in _set_config val = simple_eval(options["set"][1] + " " + " ".join(args)) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 81, in simple_eval res = atom(src.next, src.next()) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 65, in atom return float(token[-1]) ValueError: invalid literal for float(): 192.168.0.2 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/deluge/ui/console/main.py", line 320, in do_command ret = self._commands[cmd].handle(*args, **options.__dict__) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 98, in handle return self._set_config(*args, **options) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 134, in _set_config val = simple_eval(options["set"][1] + " " + " ".join(args)) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 81, in simple_eval res = atom(src.next, src.next()) File "/usr/lib/python2.6/site-packages/deluge/ui/console/commands/config.py", line 65, in atom return float(token[-1]) ValueError: invalid literal for float(): 192.168.0.2
Version is deluge-1.3.3-1.fc15.noarch
A patch is proposed in the aformentioned link.
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | deluge-fix1954.diff added |
---|
comment:1 by , 13 years ago
Milestone: | Future → 1.3.4 |
---|
Note:
See TracTickets
for help on using tickets.
My own patch to work around this