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
bd14657055
commit
f36ecc470b
1 changed files with 1 additions and 1 deletions
|
@ -1134,7 +1134,7 @@ class Torrent(object):
|
||||||
if not os.path.exists(dest):
|
if not os.path.exists(dest):
|
||||||
try:
|
try:
|
||||||
os.makedirs(dest)
|
os.makedirs(dest)
|
||||||
except IOError as ex:
|
except OSError as ex:
|
||||||
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: %s",
|
"not exist and could not create the directory: %s",
|
||||||
self.torrent_id, dest, ex)
|
self.torrent_id, dest, ex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue