Ticket #1954: deluge-fix1954.diff

File deluge-fix1954.diff, 655 bytes (added by nixar, 13 years ago)

My own patch to work around this

  • deluge/ui/console/commands/config.py

    diff -ru ../deluge-1.3.3.orig/deluge/ui/console/commands/config.py ./deluge/ui/console/commands/config.py
    old new  
    6565            else:
    6666                return int(token[1], 0)
    6767        except ValueError:
    68             return float(token[-1])
     68            try:
     69                return float(token[-1])
     70            except ValueError:
     71                return str(token[-1])
    6972    elif token[1].lower() == 'true':
    7073        return True
    7174    elif token[1].lower() == 'false':