Opened 6 years ago

Closed 6 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 6 years ago.
My own patch to work around this

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by nixar

My own patch to work around this

comment:1 Changed 6 years ago by Cas

  • Milestone changed from Future to 1.3.4

comment:2 Changed 6 years ago by Cas

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 1.3-stable: 30c142a

Note: See TracTickets for help on using tickets.