try to catch invalid_handle in add_torrent
This commit is contained in:
parent
0958a8c504
commit
441fa3a0ad
@ -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&)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user