From eac2a10a12b651156ba400b30109fdd7cc48e273 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 10 Dec 2009 21:28:51 +0000 Subject: [PATCH] Fix possible exception when upgrading from a 0.5 state file --- deluge/core/oldstateupgrader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/oldstateupgrader.py b/deluge/core/oldstateupgrader.py index 5e1e0f350..9dc722d25 100644 --- a/deluge/core/oldstateupgrader.py +++ b/deluge/core/oldstateupgrader.py @@ -97,7 +97,7 @@ class OldStateUpgrader: torrent_info = lt.torrent_info(lt.bdecode(_file.read())) _file.close() except (IOError, RuntimeError), e: - log.warning("Unable to open %s: %s", filepath, e) + log.warning("Unable to open %s: %s", torrent_path, e) # Copy the torrent file to the new location import shutil