mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Return if bad torrent_info
This commit is contained in:
parent
f2364b8531
commit
9ed37e070c
1 changed files with 3 additions and 1 deletions
|
@ -278,6 +278,8 @@ class TorrentManager(component.Component):
|
|||
torrent_info = lt.torrent_info(lt.bdecode(filedump))
|
||||
except Exception, e:
|
||||
log.error("Unable to decode torrent file!: %s", e)
|
||||
# XXX: Probably should raise an exception here..
|
||||
return
|
||||
|
||||
if torrent_info is None and state:
|
||||
# We have no torrent_info so we need to add the torrent with information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue