def report_traceback():
 try:
  formatted_lines = traceback.format_exc()
  now = time.time()
  return (formatted_lines, now)
 except AttributeError:
  return (None, None)

def report_traceback ( ) : try : formatted_lines = traceback . format_exc ( ) now = time . time ( ) return ( formatted_lines , now ) except AttributeError : return ( None , None )
reports a timestamp and full traceback for a given exception .