From 63c71760ddd0d4a32eb9ace678906aadf649967a Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 22 Mar 2017 20:34:09 -0400 Subject: [PATCH] hack for lbrynet-cli for now --- lbrynet/lbrynet_daemon/auth/server.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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