8000 fix: `ServerConnectionError` by aMahanna · Pull Request #336 · arangodb/python-arango · GitHub
[go: up one dir, main page]

Skip to content

fix: ServerConnectionError #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’l 8000 l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2024
Merged

fix: ServerConnectionError #336

merged 2 commits into from
Apr 23, 2024

Conversation

aMahanna
Copy link
Member

Updates the ServerConnectionError exception to inherit from ArangoServerError instead of ArangoClientError, thereby giving us access to error_code, among other things.

Previously, the following code would just return the error message:

from arango import ArangoClient
db = ArangoClient().db("bad_db", password="test", verify=True)

Whereas now we have access to the error code (i.e 1228)

@aMahanna aMahanna merged commit dea2470 into main Apr 23, 2024
35 of 52 checks passed
@aMahanna aMahanna deleted the update-server-connection-error branch April 23, 2024 14:55
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.

2 participants
0