Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #66 from doismellburning/handle_auth_denied

Ditch exception catch on root fetch at GraphDatabase.__init__()
Thanks to @doismellburning.
  • Loading branch information...
commit 851144d6de18e9955575c5b3e8cf77fc9addd565 2 parents 532e317 + ff02570
@versae authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 neo4jrestclient/client.py
View
6 neo4jrestclient/client.py
@@ -76,11 +76,7 @@ def __init__(self, url, username=None, password=None, cert_file=None,
self.url = url
else:
self.url = "%s/" % url
- response, content = None, None
- try:
- response, content = Request(**self._auth).get(url)
- except Exception:
- raise NotFoundError(result="Unable get root")
+ response, content = Request(**self._auth).get(url)
if response.status == 200:
response_json = json.loads(content)
self._relationship_index = response_json['relationship_index']
Please sign in to comment.
Something went wrong with that request. Please try again.