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
I got UnicodeEncodeError exception during the Vulture analysis.
Traceback:
Traceback (most recent call last):
File "/ws/venv3_x/bin/vulture", line 8, in <module>
sys.exit(main())
File "/ws/venv3_x/lib/python3.6/site-packages/vulture/core.py", line 710, in main
make_whitelist=config["make_whitelist"],
File "/ws/venv3_x/lib/python3.6/site-packages/vulture/core.py", line 334, in report
else item.get_report(add_size=sort_by_size)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 84-90: ordinal not in range(256)
It's possible that my codebase contains special characters but it's hard to debug it because I analyze ~1000 Python files in the same time (And the provided Exception doesn't contain any reference for the problematic file).
I think it would be nice to improve the Encoding in the core.py or at least handle the exception and throw a more talkative exception (perhaps with the name/path of the problematic file)
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I have changed the venv3_* pattern to *venv3_* in the --exclude parameter and now the analysis works as expected. I have removed all non-ascii characters from my code-base so in my opinion the faulty file is in the Virtual Environment.
On the other hand, I still think the Exception should me more specific/talkative and the error should be handled.
I got
UnicodeEncodeError
exception during theVulture
analysis.Traceback:
My command:
Used
vulture
version inrequirements.txt file
:vulture==2.5
Used
Python
version:3.6.6
It's possible that my codebase contains special characters but it's hard to debug it because I analyze ~1000 Python files in the same time (And the provided Exception doesn't contain any reference for the problematic file).
I think it would be nice to improve the Encoding in the
core.py
or at least handle the exception and throw a more talkative exception (perhaps with the name/path of the problematic file)Thank you in advance!
The text was updated successfully, but these errors were encountered: