Bug fix in auth.server

Fixes a mistake in fa8190356a,
where an usage of _log_and_render_error was overlooked
This commit is contained in:
Job Evers-Meltzer 2016-12-30 16:48:44 -06:00
parent eec25791a5
commit e823bb2012

View file

@ -312,8 +312,8 @@ class AuthJSONRPCServer(AuthorizedBase):
self._set_headers(request, encoded_message, auth_required) self._set_headers(request, encoded_message, auth_required)
self._render_message(request, encoded_message) self._render_message(request, encoded_message)
except Exception as err: except Exception as err:
msg = "Failed to render API response: %s" log.exception("Failed to render API response: %s", result)
self._log_and_render_error(err, request, message=msg, version=version) self._render_error(err, request, version)
def _render_response(self, result, code): def _render_response(self, result, code):
return defer.succeed({'result': result, 'code': code}) return defer.succeed({'result': result, 'code': code})