From a4d1fbd0bd70f138145e1135e3569c06f9e32606 Mon Sep 17 00:00:00 2001 From: John Garland Date: Sat, 26 Sep 2009 16:25:16 +0000 Subject: [PATCH] Fix unbound local error when adding a torrent fails. --- deluge/core/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index ba492521b..6b163eb65 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -216,6 +216,7 @@ class Core(component.Component): except Exception, e: log.error("There was an error adding the torrent file %s", filename) log.exception(e) + torrent_id = None return torrent_id