mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[Core] Fix move_storage exception handling
This commit is contained in:
parent
e65a7ff2ea
commit
5d301a4b33
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue