def handle_crash(w3af_core, _type, value, tb, plugins=''):
 if issubclass(_type, KeyboardInterrupt):
  handle_keyboardinterrupt(w3af_core)
 exception = traceback.format_exception(_type, value, tb)
 exception = ''.join(exception)
 print exception
 clean_exception = cleanup_bug_report(exception)
 filename = create_crash_file(clean_exception)
 bug_report_win = unhandled_bug_report.BugReportWindow(w3af_core, _('Bug detected!'), clean_exception, filename, plugins)
 bug_report_win.show()

def handle_crash ( w3af_core , _type , value , tb , plugins = '' ) : if issubclass ( _type , KeyboardInterrupt ) : handle_keyboardinterrupt ( w3af_core ) exception = traceback . format_exception ( _type , value , tb ) exception = '' . join ( exception ) print exception clean_exception = cleanup_bug_report ( exception ) filename = create_crash_file ( clean_exception ) bug_report_win = unhandled_bug_report . BugReportWindow ( w3af_core , _ ( 'Bug detected!' ) , clean_exception , filename , plugins ) bug_report_win . show ( )
function to handle any exception that is not addressed explicitly .