You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
Querying bookwyrm -t 'mass effect' yields an pybind11::error_already_set during self.bookwyrm.feed(item). While the core::item is constructed, the std::string returned from core::get_string(py::dict &, const char*) apparently triggers this; stepping through the code the value is successfully indexed from the dict and the py::str and std::string constructed. The exception is thrown during function return (?).
To be more specific, the item we feed is constructed from the first entry in these search results. The exception is thrown when calling get_string(dict, "title"), which is upon its first occurance in the nonexact_ts constructor.
This exception does not occur during item construction. It is thrown somewhere in item::matches(const item&, const unsigned int) const! Going by the error message, somewhere we do a bad substr with pos = 2^32 - 1 which logically yields an std::out_of_range. This exception is then translated to a Python IndexError that is then caught in the module runner function.
The exception is thrown in fuzzywuzzy's fuzz::partial_ratio, lib/fuzzywuzzy/src/fuzzywuzzy.cpp:46 (the only occurance of std::string::substr() where in
Querying
bookwyrm -t 'mass effect'
yields anpybind11::error_already_set
duringself.bookwyrm.feed(item)
. While thecore::item
is constructed, thestd::string
returned fromcore::get_string(py::dict &, const char*)
apparently triggers this; stepping through the code the value is successfully indexed from the dict and thepy::str
andstd::string
constructed. The exception is thrown during function return (?).Originally posted by @tmplt in #75 (comment)
The text was updated successfully, but these errors were encountered: