Fix possible exception when upgrading from a 0.5 state file
This commit is contained in:
parent
9f034657b0
commit
eac2a10a12
|
@ -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…
Reference in New Issue