Custom Query (2447 matches)
Results (409 - 411 of 2447)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2914 | Fixed | Config migration, file format and default config | ||
Description |
The current config system supports registering migration functions to migrate old configs to new formats. I migration function will migrate from earlier file format versions resulting in a new config with a higher file version. If an existing config file does not exist, the config is populated with the default values, however, there is no way to indicate which versions the default values correspond to. The result is that the file version is set to 1 for fresh configs, before the migration functions are called. This requires the default config dict to never change, in order to be compatible with what the migration functions expect. A solution to this is to add a parameter to specify the file version of the default config dict so that when a config file does not exist on disk, the migration functions are not run because the config file format will already be the latest version. |
|||
#1341 | Fixed | @config.py:402, self._save_timer may be None | ||
Description |
A bug in config.py results in config files not being properly written to disk. When save is called, self._save_timer may ne None which results in an exception at config.py:402. Fix attached. |
|||
#1967 | Fixed | config.py IndexError in save(): list index out of range | ||
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: |