Fix unbound local error when adding a torrent fails.
This commit is contained in:
parent
66402b7526
commit
a4d1fbd0bd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue