This commit is contained in:
Alex Grintsvayg 2017-03-23 15:44:23 -04:00
parent 9410cd9e77
commit 7708c4a15c

View file

@ -197,7 +197,7 @@ class AuthJSONRPCServer(AuthorizedBase):
response_content = jsonrpc_dumps_pretty(error, id=id_) response_content = jsonrpc_dumps_pretty(error, id=id_)
self._set_headers(request, response_content) self._set_headers(request, response_content)
# uncomment this after fixing lbrynet-cli to not raise exceptions on errors # TODO: uncomment this after fixing lbrynet-cli to handle error code responses correctly
# try: # try:
# request.setResponseCode(JSONRPCError.HTTP_CODES[error.code]) # request.setResponseCode(JSONRPCError.HTTP_CODES[error.code])
# except KeyError: # except KeyError: