Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Commented out the "one of result or error" exception.
Browse files Browse the repository at this point in the history
Just returning the error is more useful
  • Loading branch information
quarnster committed May 8, 2013
1 parent d55a981 commit 07434ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3rdparty/jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def loads_response( self, string ):

#error
if data["error"] is not None:
if data["result"] is not None:
raise RPCInvalidRPC("""Invalid Response, one of "result" or "error" must be null.""")
# if data["result"] is not None:
# raise RPCInvalidRPC("""Invalid Response, one of "result" or "error" must be null.""")
#v2.0 error-format
if( isinstance(data["error"], dict) and "code" in data["error"] and "message" in data["error"] and
(len(data["error"])==2 or ("data" in data["error"] and len(data["error"])==3)) ):
Expand Down

0 comments on commit 07434ad

Please sign in to comment.