Opened 12 years ago
Closed 12 years ago
#1967 closed bug (Fixed)
config.py IndexError in save(): list index out of range
Reported by: | Cas | Owned by: | Cas |
---|---|---|---|
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:
Change History (1)
comment:1 Changed 12 years ago by Cas
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fix committed to 1.3-stable:e336cd64