Skip to content

Commit

Permalink
removed ressource warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqdaouda committed Jul 18, 2016
1 parent d0d9f21 commit 4070071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyArango/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def __call__(self, *args, **kwargs) :
kwargs["auth"] = self.session.auth

try :
ret = self.fct(*args, **kwargs)
with self.session.session as s:
ret = self.fct(*args, **kwargs)
except :
print ("===\nUnable to establish connection, perhaps arango is not running.\n===")
raise
Expand Down

0 comments on commit 4070071

Please sign in to comment.