mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
fix crash on trying to convert *very* old 0.5 config files
This commit is contained in:
parent
cf40455d1c
commit
3584fa9e41
1 changed files with 30 additions and 26 deletions
|
@ -76,6 +76,10 @@ class OldStateUpgrader:
|
|||
log.debug("Unable to open 0.5 state file: %s", e)
|
||||
return
|
||||
|
||||
if type(state).__name__ == 'list':
|
||||
log.debug("0.5 state file is too old to upgrade:")
|
||||
return
|
||||
else:
|
||||
new_state = deluge.core.torrentmanager.TorrentManagerState()
|
||||
for ti, uid in state.torrents.items():
|
||||
torrent_path = os.path.join(self.config["config_location"], "torrentfiles", ti.filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue