Backport PR
#9955: Catch UnicodeDecodeError from file lying about its encoding...
Backport PR
#9955: Catch UnicodeDecodeError from file lying about its encoding
Closes gh-9954
I'd like to show a more useful error, but we're several layers away from the code that knows the filename, and I don't want to duplicate a load of code from the traceback module. This prevents it from crashing IPython, at least.