Skip to content

Conversation

@tuomassalo
Copy link

When a JSON-RPC call fails, the server may send additional information in error.data. This change allows access to that data. Now you can do something like:

s = jsonrpclib.Server('http://...')
try:
  s.my.method.call(...)
except AppError as e:
  # access e.data() here
except:
  # protocol errors and other stuff go here, as earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant