SIGN IN SIGN UP

Hunt down social media accounts by username across social networks

0 0 101 Python

fix: handle UnicodeDecodeError on usernames with special characters

Fixes #2730. Usernames containing non-ASCII characters (e.g. 'Émile')
can trigger a UnicodeDecodeError inside the requests library during
redirect handling. This exception is not a subclass of
requests.exceptions.RequestException, so it escaped all existing
except blocks in get_response() and crashed the program.

Added a catch for UnicodeError (parent of both UnicodeDecodeError and
UnicodeEncodeError) so these sites are gracefully skipped instead of
crashing the entire scan.

Added regression tests in tests/test_unicode.py.
S
salmanrajz committed
4656d95702e57e8a46d61b4445360e9043d52e93
Parent: 574aeb4