Fix unbound local error when adding a torrent fails.

This commit is contained in:
John Garland 2009-09-26 16:25:16 +00:00
parent 66402b7526
commit a4d1fbd0bd
1 changed files with 1 additions and 0 deletions

View File

@ -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