(exc)
log an unexpected exception
log an unexpected exception
log an unexpected exception
def log_exc(exc):
    """log an unexpected exception"""
    log_err('Caught unexpected exception: {}\n{}'.format(
        exc, traceback.format_exc()))
def log_exc ( exc ) : log_err ( 'Caught unexpected exception: {}\n{}' . format ( exc , traceback . format_exc ( ) ) )