mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
[Core] Fix move_storage exception handling
This commit is contained in:
parent
e65a7ff2ea
commit
5d301a4b33
@ -909,9 +909,10 @@ class Torrent(object):
|
|||||||
try:
|
try:
|
||||||
# Try to make the destination path if it doesn't exist
|
# Try to make the destination path if it doesn't exist
|
||||||
os.makedirs(dest)
|
os.makedirs(dest)
|
||||||
except IOError, e:
|
except OSError, e:
|
||||||
log.exception(e)
|
log.error("Could not move storage for torrent %s since %s does "
|
||||||
log.error("Could not move storage for torrent %s since %s does not exist and could not create the directory.", self.torrent_id, dest_u)
|
"not exist and could not create the directory: %s",
|
||||||
|
self.torrent_id, dest, ex)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user