mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix #1954 : 'invalid literal for float' console error when setting listen interface
This commit is contained in:
parent
08a75bd9f9
commit
30c142ac4d
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ def atom(next, token):
|
|||
else:
|
||||
return int(token[1], 0)
|
||||
except ValueError:
|
||||
return float(token[-1])
|
||||
try:
|
||||
return float(token[-1])
|
||||
except ValueError:
|
||||
return str(token[-1])
|
||||
elif token[1].lower() == 'true':
|
||||
return True
|
||||
elif token[1].lower() == 'false':
|
||||
|
|
Loading…
Add table
Reference in a new issue