equal
deleted
inserted
replaced
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 |