From 0d8b619200e5ebe863527163adc7349efd1a9153 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 14 May 2008 20:11:08 +0000 Subject: [PATCH] Fix catching of invalid torrent file --- src/deluge_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 6c18f6a20..64f79a17b 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -929,6 +929,9 @@ std::cout << asctime(timeinfo) << " torrent_dump_file_info()" << std::endl; return ret; } + catch(invalid_torrent_file&){ + return NULL; + } catch(invalid_encoding&){ return NULL; }