diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-12-10 21:28:51 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-12-10 21:28:51 +0000 |
commit | 361f2b239013b12c9ddc726d72b775f970adc443 (patch) | |
tree | 4a5bfd716ce41444e91a0fcbb673d920a3c15f74 | |
parent | 97a69b8c0c1d8e7832cb7233b9beab433e3c9902 (diff) | |
download | deluge-361f2b239013b12c9ddc726d72b775f970adc443.tar.gz deluge-361f2b239013b12c9ddc726d72b775f970adc443.tar.bz2 deluge-361f2b239013b12c9ddc726d72b775f970adc443.zip |
Fix possible exception when upgrading from a 0.5 state file
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | deluge/core/oldstateupgrader.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ ==== Core ===== * Fix the upload_plugin rpc method (was still using XML-RPC stuff) + * Fix possible exception when upgrading from a 0.5 state file === Deluge 1.2.0_rc4 (24 November 2009) === ==== Core ==== diff --git a/deluge/core/oldstateupgrader.py b/deluge/core/oldstateupgrader.py index 5e1e0f350..9dc722d25 100644 --- a/deluge/core/oldstateupgrader.py +++ b/deluge/core/oldstateupgrader.py @@ -97,7 +97,7 @@ class OldStateUpgrader: torrent_info = lt.torrent_info(lt.bdecode(_file.read())) _file.close() except (IOError, RuntimeError), e: - log.warning("Unable to open %s: %s", filepath, e) + log.warning("Unable to open %s: %s", torrent_path, e) # Copy the torrent file to the new location import shutil |