From 5dc280973243f3b9149800018c8cf7111b5cbf18 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 23 Mar 2009 23:16:12 +0000 Subject: [PATCH] raise the exception since if we haven't been able to read the file there's not point in continuing --- deluge/ui/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/common.py b/deluge/ui/common.py index 37e0124df..45174a470 100644 --- a/deluge/ui/common.py +++ b/deluge/ui/common.py @@ -169,6 +169,7 @@ def get_torrent_info(filename): metadata = bencode.bdecode(open(filename, "rb").read()) except Exception, e: log.warning("Unable to open %s: %s", filename, e) + raise e info_hash = sha(bencode.bencode(metadata["info"])).hexdigest()