mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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 to make the destination path if it doesn't exist
|
||||
os.makedirs(dest)
|
||||
except IOError, e:
|
||||
log.exception(e)
|
||||
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)
|
||||
except OSError, e:
|
||||
log.error("Could not move storage for torrent %s since %s does "
|
||||
"not exist and could not create the directory: %s",
|
||||
self.torrent_id, dest, ex)
|
||||
return False
|
||||
|
||||
kwargs = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue