server/sources/pyrorql.py
changeset 8695 358d8bed9626
parent 8675 b60329e40e26
child 9374 1236d9058ad3
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
    32     """External repository source, using Pyro connection"""
    32     """External repository source, using Pyro connection"""
    33 
    33 
    34     def get_connection(self):
    34     def get_connection(self):
    35         try:
    35         try:
    36             return self._get_connection()
    36             return self._get_connection()
    37         except (ConnectionError, PyroError), ex:
    37         except (ConnectionError, PyroError) as ex:
    38             self.critical("can't get connection to source %s: %s", self.uri, ex)
    38             self.critical("can't get connection to source %s: %s", self.uri, ex)
    39             return ConnectionWrapper()
    39             return ConnectionWrapper()
    40 
    40 
    41     def check_connection(self, cnx):
    41     def check_connection(self, cnx):
    42         """check connection validity, return None if the connection is still valid
    42         """check connection validity, return None if the connection is still valid