mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix possible exception when upgrading from a 0.5 state file
This commit is contained in:
parent
97a69b8c0c
commit
361f2b2390
2 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
==== Core =====
|
==== Core =====
|
||||||
* Fix the upload_plugin rpc method (was still using XML-RPC stuff)
|
* 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) ===
|
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
|
|
|
@ -97,7 +97,7 @@ class OldStateUpgrader:
|
||||||
torrent_info = lt.torrent_info(lt.bdecode(_file.read()))
|
torrent_info = lt.torrent_info(lt.bdecode(_file.read()))
|
||||||
_file.close()
|
_file.close()
|
||||||
except (IOError, RuntimeError), e:
|
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
|
# Copy the torrent file to the new location
|
||||||
import shutil
|
import shutil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue