def _handle_interrupt(exc, original_exc, hardfail=False, trace=''):
 if hardfail:
  if trace:
   log.error(trace)
  raise original_exc
 else:
  raise exc

def _handle_interrupt ( exc , original_exc , hardfail = False , trace = '' ) : if hardfail : if trace : log . error ( trace ) raise original_exc else : raise exc
if hardfailing: if we got the original stacktrace .