From 441fa3a0adbc86fbd750a05809004b6e22f6e093 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 26 Nov 2007 18:56:17 +0000 Subject: try to catch invalid_handle in add_torrent --- src/deluge_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 4de7e2bf8..9238a2c03 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -743,6 +743,8 @@ static PyObject *torrent_add_torrent(PyObject *self, PyObject *args) } catch (invalid_encoding&) { RAISE_PTR(InvalidEncodingError, ""); } + catch (invalid_handle&) + { printf("invalid handle error on add_torrent"); } catch (invalid_torrent_file&) { RAISE_PTR(InvalidTorrentError, ""); } catch (boost::filesystem::filesystem_error&) -- cgit