mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
try to catch invalid_handle in add_torrent
This commit is contained in:
parent
9ec83822a0
commit
47acfd93ea
1 changed files with 2 additions and 0 deletions
|
@ -743,6 +743,8 @@ static PyObject *torrent_add_torrent(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
catch (invalid_encoding&)
|
catch (invalid_encoding&)
|
||||||
{ RAISE_PTR(InvalidEncodingError, ""); }
|
{ RAISE_PTR(InvalidEncodingError, ""); }
|
||||||
|
catch (invalid_handle&)
|
||||||
|
{ printf("invalid handle error on add_torrent"); }
|
||||||
catch (invalid_torrent_file&)
|
catch (invalid_torrent_file&)
|
||||||
{ RAISE_PTR(InvalidTorrentError, ""); }
|
{ RAISE_PTR(InvalidTorrentError, ""); }
|
||||||
catch (boost::filesystem::filesystem_error&)
|
catch (boost::filesystem::filesystem_error&)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue