diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-11-26 18:56:17 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-11-26 18:56:17 +0000 |
commit | 441fa3a0adbc86fbd750a05809004b6e22f6e093 (patch) | |
tree | 472c5a10073dc69063b1d405c7e140f209cf4c66 | |
parent | 0958a8c504a3cbc037c9ebf074522e8adf0a00a9 (diff) | |
download | deluge-441fa3a0adbc86fbd750a05809004b6e22f6e093.tar.gz deluge-441fa3a0adbc86fbd750a05809004b6e22f6e093.tar.bz2 deluge-441fa3a0adbc86fbd750a05809004b6e22f6e093.zip |
try to catch invalid_handle in add_torrent
-rw-r--r-- | src/deluge_core.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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&) |