mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 17:08:42 +00:00
Fix [4491] which broke the oldstateupgrade
This commit is contained in:
parent
e42910dbf8
commit
f990fd1a9a
1 changed files with 29 additions and 28 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue