summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-12-10 21:28:51 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-12-10 21:28:51 +0000
commit361f2b239013b12c9ddc726d72b775f970adc443 (patch)
tree4a5bfd716ce41444e91a0fcbb673d920a3c15f74
parent97a69b8c0c1d8e7832cb7233b9beab433e3c9902 (diff)
downloaddeluge-361f2b239013b12c9ddc726d72b775f970adc443.tar.gz
deluge-361f2b239013b12c9ddc726d72b775f970adc443.tar.bz2
deluge-361f2b239013b12c9ddc726d72b775f970adc443.zip
Fix possible exception when upgrading from a 0.5 state file
-rw-r--r--ChangeLog1
-rw-r--r--deluge/core/oldstateupgrader.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bb35543fe..cec837adf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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