Skip to content

Commit

Permalink
show class of exception when evaluating expr (#735)
Browse files Browse the repository at this point in the history
Fixes #661
  • Loading branch information
elliott-beach authored and DonJayamanne committed Feb 21, 2018
1 parent be2bb00 commit a5fd614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythonFiles/PythonTools/visualstudio_py_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,8 @@ def report_execution_error(exc_text, execution_id):

def report_execution_exception(execution_id, exc_info):
try:
exc_text = str(exc_info[1])
exc_type, exc_value, traceback = exc_info
exc_text = '{}: {}'.format(get_exception_name(exc_type), exc_value)
except:
exc_text = 'An exception was thrown'

Expand Down

0 comments on commit a5fd614

Please sign in to comment.