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 | 47acfd93ea6d49a0347358e11e4734d7024096ba (patch) | |
tree | d4d0527b4ae8eacfc9dfd9ddd19589e8787141ad | |
parent | 9ec83822a0ad581604f21f618f1611b37403358e (diff) | |
download | deluge-47acfd93ea6d49a0347358e11e4734d7024096ba.tar.gz deluge-47acfd93ea6d49a0347358e11e4734d7024096ba.tar.bz2 deluge-47acfd93ea6d49a0347358e11e4734d7024096ba.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&) |