branch | stable |
changeset 8545 | eb7a171cec72 |
parent 8354 | a9984ceebc26 |
child 8675 | b60329e40e26 |
--- a/server/sources/pyrorql.py Mon Sep 03 12:26:20 2012 +0200 +++ b/server/sources/pyrorql.py Fri Sep 14 17:42:24 2012 +0200 @@ -91,5 +91,9 @@ except AttributeError: # inmemory connection pass - return super(PyroRQLSource, self).check_connection(cnx) + try: + return super(PyroRQLSource, self).check_connection(cnx) + except ConnectionClosedError: + # try to reconnect + return self.get_connection()