From f36ecc470b9fd7af70c4619c06bcea940c16d59f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 9 Dec 2015 19:00:06 +0000 Subject: [PATCH] [Core] Fix move_storage exception handling --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 3e00b06bf..7b58e846e 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -1134,7 +1134,7 @@ class Torrent(object): if not os.path.exists(dest): try: os.makedirs(dest) - except IOError as ex: + except OSError as ex: 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)