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:
parent
eec25791a5
commit
e823bb2012
1 changed files with 2 additions and 2 deletions
|
@ -312,8 +312,8 @@ class AuthJSONRPCServer(AuthorizedBase):
|
|||
self._set_headers(request, encoded_message, auth_required)
|
||||
self._render_message(request, encoded_message)
|
||||
except Exception as err:
|
||||
msg = "Failed to render API response: %s"
|
||||
self._log_and_render_error(err, request, message=msg, version=version)
|
||||
log.exception("Failed to render API response: %s", result)
|
||||
self._render_error(err, request, version)
|
||||
|
||||
def _render_response(self, result, code):
|
||||
return defer.succeed({'result': result, 'code': code})
|
||||
|
|
Loading…
Reference in a new issue