def handle_exception(exception): logging.exception('An exception with the following traceback occurred:') raise falcon.HTTPInternalServerError('error', str(exception))