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)