Pymeterpreter use print_exc and not print_exception

bug/bundler_fix
Spencer McIntyre 2014-06-02 16:50:54 -04:00
parent 77eac38b01
commit b84297980d
1 changed files with 1 additions and 2 deletions

View File

@ -526,8 +526,7 @@ class PythonMeterpreter(object):
except Exception:
if DEBUGGING:
print('[-] method ' + handler_name + ' resulted in an error')
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback, file=sys.stderr)
traceback.print_exc(file=sys.stderr)
result = ERROR_FAILURE
else:
if DEBUGGING: