Added additional protection for crash_gen tool, to capture sys.exit() in lower level libraries

This commit is contained in:
Steven Li 2020-07-09 08:02:05 +00:00
parent cf2bdb4e83
commit 3abcbc306c
1 changed files with 5 additions and 0 deletions

View File

@ -1239,6 +1239,11 @@ class Task():
self._err = e
self._aborted = True
traceback.print_exc()
except BaseException as e :
self.logInfo("Python base exception encountered")
self._err = e
self._aborted = True
traceback.print_exc()
except :
self.logDebug("[=] Unexpected exception, SQL: {}".format(self._lastSql))
raise