Changed variable name to avoid class with the bulitin 'type'

This commit is contained in:
Morten Enemark Lund 2015-07-30 17:17:50 +02:00
parent 5249021aeb
commit 0c3f345e1b

View file

@ -121,5 +121,6 @@ def _print_exception():
if builtins.__xonsh_env__.get('XONSH_SHOW_TRACEBACK', False):
traceback.print_exc()
else:
type, value, exc_traceback = sys.exc_info()
sys.stderr.write(''.join(traceback.format_exception_only(type, value)))
exc_type, exc_value, exc_traceback = sys.exc_info()
exception_only = traceback.format_exception_only(exc_type, exc_value)
sys.stderr.write(''.join(exception_only))