Author: johnnyg

Revision: 5782

Log:
        Fix unbound local error when adding a torrent fails.

Diff:
Modified: trunk/deluge/core/core.py
===================================================================
--- trunk/deluge/core/core.py   2009-09-26 03:15:09 UTC (rev 5781)
+++ trunk/deluge/core/core.py   2009-09-26 16:25:16 UTC (rev 5782)
@@ -216,6 +216,7 @@
         except Exception, e:
             log.error("There was an error adding the torrent file %s", 
filename)
             log.exception(e)
+            torrent_id = None
 
         return torrent_id
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to