mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
raise the exception since if we haven't been able to read the file there's not point in continuing
This commit is contained in:
parent
fe83a95041
commit
5dc2809732
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ def get_torrent_info(filename):
|
||||||
metadata = bencode.bdecode(open(filename, "rb").read())
|
metadata = bencode.bdecode(open(filename, "rb").read())
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.warning("Unable to open %s: %s", filename, e)
|
log.warning("Unable to open %s: %s", filename, e)
|
||||||
|
raise e
|
||||||
|
|
||||||
info_hash = sha(bencode.bencode(metadata["info"])).hexdigest()
|
info_hash = sha(bencode.bencode(metadata["info"])).hexdigest()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue