Can't set alert_mask
to lt.alert.category_t.all_categories
in Python bindings
#5848
Labels
alert_mask
to lt.alert.category_t.all_categories
in Python bindings
#5848
In #5831, the following code was suggested:
Contrary to expectations, this code does not work.
The problem is that
lt.alert.category_t.all_categories
does not fit into a signed 32-bit integer. As a result, an exception ("bad numeric conversion: positive overflow") is thrown inmake_settings_pack
when parsing the dict, but caught and silently discarded.It works with this patch:
Perhaps the C++ exception should be converted to a Python error?
Using libtorrent d5b27ee on Linux.
The text was updated successfully, but these errors were encountered: