mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
tweak try/catch again
This commit is contained in:
parent
8c5355498c
commit
d288e39a54
1 changed files with 7 additions and 7 deletions
|
@ -1802,11 +1802,11 @@ static PyObject *torrent_replace_trackers(PyObject *self, PyObject *args)
|
|||
const char* tracker;
|
||||
if (!PyArg_ParseTuple(args, "iz", &unique_ID, &tracker))
|
||||
return NULL;
|
||||
|
||||
try {
|
||||
long index = get_index_from_unique_ID(unique_ID);
|
||||
if (PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
try {
|
||||
if (M_torrents->at(index).handle.is_valid()){
|
||||
std::vector<libtorrent::announce_entry> trackerlist;
|
||||
std::istringstream trackers(tracker);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue