mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 18:38:39 +00:00
Fix [4491] which broke the oldstateupgrade
This commit is contained in:
parent
7a645486ab
commit
8bd576f636
2 changed files with 32 additions and 28 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue