Fix [4491] which broke the oldstateupgrade
This commit is contained in:
parent
7a645486ab
commit
8bd576f636
@ -1,4 +1,7 @@
|
||||
Deluge 1.1.1 - (In Development)
|
||||
Core:
|
||||
* Fix oldstateupgrader for those upgrading from 0.5.x
|
||||
|
||||
Misc:
|
||||
* Fix bdecoding some torrent files
|
||||
|
||||
|
||||
@ -76,10 +76,11 @@ class OldStateUpgrader:
|
||||
log.debug("Unable to open 0.5 state file: %s", e)
|
||||
return
|
||||
|
||||
# Check to see if we can upgrade this file
|
||||
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
|
||||
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…
x
Reference in New Issue
Block a user