Opened 13 years ago
Closed 13 years ago
#1967 closed bug (Fixed)
config.py IndexError in save(): list index out of range
Reported by: | Calum | Owned by: | Calum |
---|---|---|---|
Priority: | major | Milestone: | 1.3.4 |
Component: | Core | Version: | 1.3.3 |
Keywords: | Cc: |
Description
Forwarded from Launchpad
https://bugs.launchpad.net/ubuntu/+source/deluge/+bug/852454
File "/usr/lib/python2.7/dist-packages/deluge/config.py", line 409, in save start, end = objects[0] IndexError: list index out of range
Not sure of exact cause but seems that if the conf file is not in json format or empty then the error will occur.
Simply adding IndexError to the existing IOError except will catch the error instead of crashing.
except (IOError, IndexError), e:
Note:
See TracTickets
for help on using tickets.
Fix committed to 1.3-stable:e336cd64