mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[#2889] Fix for UnboundLocalError in exception handler
This commit is contained in:
parent
a7fe4d4510
commit
798f5e2deb
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ class TorrentManager(component.Component):
|
|||
os.fsync(state_file.fileno())
|
||||
state_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 state from: %s", filepath_bak)
|
||||
|
|
Loading…
Add table
Reference in a new issue