##// END OF EJS Templates
Catch UnicodeDecodeError from file lying about its encoding...
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:

r13348:e6afea51
r22880:168364a7
Show More
print_argv.py
3 lines | 69 B | text/x-python | PythonLexer
from __future__ import print_function
import sys
print(sys.argv[1:])