mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Changed variable name to avoid class with the bulitin 'type'
This commit is contained in:
parent
5249021aeb
commit
0c3f345e1b
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue