##// END OF EJS Templates
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.

File last commit:

r21337:03608cd1
r22896:c86e43f8
Show More
__main__.py
3 lines | 100 B | text/x-python | PythonLexer
if __name__ == '__main__':
from ipykernel import kernelapp as app
app.launch_new_instance()