From 4e5754b285374d1669750234edfefdbfac30ea3a Mon Sep 17 00:00:00 2001 From: bendikro Date: Thu, 17 Dec 2015 00:35:09 +0100 Subject: [PATCH] [Core] Fix UnboundLocalError in torrentmanager --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index dd5803c35..298918a7d 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -829,7 +829,7 @@ class TorrentManager(component.Component): os.fsync(fastresume_file.fileno()) fastresume_file.close() os.rename(filepath_tmp, filepath) - except IOError: + except IOError, ex: log.error("Unable to save %s: %s", filepath, ex) if os.path.isfile(filepath_bak): log.info("Restoring backup of fastresume from: %s", filepath_bak)