5 ms·
There is a very cool "explain the exception traceback" package for Python: https://github.com/aroberge/friendly https://github.com/aroberge/friendly See this v
by ivan_ah 5y ago
There is a very cool "explain the exception traceback" package for Python: https://github.com/aroberge/friendly https://github.com/aroberge/friendly
See this video for explainer and demo: https://www.youtube.com/watch?v=TmLnX7opisQ&t=678s https://www.youtube.com/watch?v=TmLnX7opisQ&t=678s
It's based on case-by-case analysis and recognizers for the most common mistakes:
https://github.com/aroberge/friendly/blob/master/friendly/runtime_errors/import_error.py#L20-L50 https://github.com/aroberge/friendly/blob/master/friendly/ru...