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)

deluge-fix1954.diff (655 bytes ) - added by nixar 13 years ago.
My own patch to work around this

Download all attachments as: .zip

Change History (3)

by nixar, 13 years ago

Attachment: deluge-fix1954.diff added

My own patch to work around this

comment:1 by Calum, 13 years ago

Milestone: Future1.3.4

comment:2 by Calum, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in 1.3-stable: 30c142a

Note: See TracTickets for help on using tickets.