Author: andar
Revision: 6007
Log:
Fix possible exception when upgrading from a 0.5 state file
Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog 2009-12-10 21:15:56 UTC (rev 6006)
+++ branches/1.2_RC/ChangeLog 2009-12-10 21:28:51 UTC (rev 6007)
@@ -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 ====
Modified: branches/1.2_RC/deluge/core/oldstateupgrader.py
===================================================================
--- branches/1.2_RC/deluge/core/oldstateupgrader.py 2009-12-10 21:15:56 UTC
(rev 6006)
+++ branches/1.2_RC/deluge/core/oldstateupgrader.py 2009-12-10 21:28:51 UTC
(rev 6007)
@@ -97,7 +97,7 @@
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
Modified: trunk/deluge/core/oldstateupgrader.py
===================================================================
--- trunk/deluge/core/oldstateupgrader.py 2009-12-10 21:15:56 UTC (rev
6006)
+++ trunk/deluge/core/oldstateupgrader.py 2009-12-10 21:28:51 UTC (rev
6007)
@@ -97,7 +97,7 @@
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
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.