diff --git a/lbrynet/lbrynet_daemon/auth/server.py b/lbrynet/lbrynet_daemon/auth/server.py index 8c5119d16..3e5a7ccf2 100644 --- a/lbrynet/lbrynet_daemon/auth/server.py +++ b/lbrynet/lbrynet_daemon/auth/server.py @@ -183,10 +183,11 @@ class AuthJSONRPCServer(AuthorizedBase): ) self._set_headers(request, response_content) - try: - request.setResponseCode(JSONRPCError.HTTP_CODES[error.code]) - except KeyError: - request.setResponseCode(JSONRPCError.HTTP_CODES[JSONRPCError.CODE_INTERNAL_ERROR]) + # uncomment this after fixing lbrynet-cli to not raise exceptions on errors + # try: + # request.setResponseCode(JSONRPCError.HTTP_CODES[error.code]) + # except KeyError: + # request.setResponseCode(JSONRPCError.HTTP_CODES[JSONRPCError.CODE_INTERNAL_ERROR]) self._render_message(request, response_content) @staticmethod