Fix [4491] which broke the oldstateupgrade
This commit is contained in:
parent
e42910dbf8
commit
f990fd1a9a
|
@ -76,10 +76,11 @@ class OldStateUpgrader:
|
||||||
log.debug("Unable to open 0.5 state file: %s", e)
|
log.debug("Unable to open 0.5 state file: %s", e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Check to see if we can upgrade this file
|
||||||
if type(state).__name__ == 'list':
|
if type(state).__name__ == 'list':
|
||||||
log.debug("0.5 state file is too old to upgrade:")
|
log.warning("0.5 state file is too old to upgrade")
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
new_state = deluge.core.torrentmanager.TorrentManagerState()
|
new_state = deluge.core.torrentmanager.TorrentManagerState()
|
||||||
for ti, uid in state.torrents.items():
|
for ti, uid in state.torrents.items():
|
||||||
torrent_path = os.path.join(self.config["config_location"], "torrentfiles", ti.filename)
|
torrent_path = os.path.join(self.config["config_location"], "torrentfiles", ti.filename)
|
||||||
|
|
Loading…
Reference in New Issue