def handle_exceptions(w3af_core):
 for edata in w3af_core.exception_handler.get_unique_exceptions():
  edata_str = edata.get_details()
  create_crash_file(edata_str)
 msg = 'Complete information related to the exceptions is available at "%s"'
 print (msg % gettempdir())
 print w3af_core.exception_handler.generate_summary_str()
 title = _('Handled exceptions to report')
 bug_report_win = handled_bug_report.BugReportWindow(w3af_core, title)
 bug_report_win.show()

def handle_exceptions ( w3af_core ) : for edata in w3af_core . exception_handler . get_unique_exceptions ( ) : edata_str = edata . get_details ( ) create_crash_file ( edata_str ) msg = 'Complete information related to the exceptions is available at "%s"' print ( msg % gettempdir ( ) ) print w3af_core . exception_handler . generate_summary_str ( ) title = _ ( 'Handled exceptions to report' ) bug_report_win = handled_bug_report . BugReportWindow ( w3af_core , title ) bug_report_win . show ( )
in w3afs new exception handling method .