def get_scan_time(self): ''' :return: The scan time in a format similar to: 3h 25m 32s ''' return epoch_to_string(self._start_time_epoch)
def get_scan_time(self): """ :return: The scan time in a format similar to: 3h 25m 32s """ return epoch_to_string(self._start_time_epoch)
# purpose so we can find out the *really* unknown error # conditions. # raise except w3afMustStopException, wmse: self._end(wmse, ignore_err=True) om.out.error('\n**IMPORTANT** The following error was ' 'detected by w3af and couldn\'t be resolved:\n %s\n' % wmse) except Exception: om.out.error('\nUnhandled error, traceback: %s\n' % traceback.format_exc()) raise finally: try: msg = 'Scan finished in %s' % epoch_to_string(self._start_time_epoch) om.out.information( msg ) except: # In some cases we get here after a disk full exception # where the output manager can't even writea log message # to disk and/or the console. Seen this happen many times # in LiveCDs like Backtrack that don't have "real disk space" pass self.progress.stop() def cleanup( self ): ''' The GTK user interface calls this when a scan has been stopped (or ended successfully) and the user wants to start a new scan. All data from the kb is deleted.