# HG changeset patch # User Sylvain Thénault # Date 1246869722 -7200 # Node ID 5483155a1e177876533daa470892e6bacca03caa # Parent 70c0da0f21818924db52a31eff700202133d300c avoid additional tb in logs when we can't connect to the external source diff -r 70c0da0f2181 -r 5483155a1e17 server/sources/pyrorql.py --- a/server/sources/pyrorql.py Mon Jul 06 10:32:28 2009 +0200 +++ b/server/sources/pyrorql.py Mon Jul 06 10:42:02 2009 +0200 @@ -164,7 +164,12 @@ """ self.info('synchronizing pyro source %s', self.uri) cnx = self.get_connection() - extrepo = cnx._repo + try: + extrepo = cnx._repo + except AttributeError: + # fake connection wrapper returned when we can't connect to the + # external source (hence we've no chance to synchronize...) + return etypes = self.support_entities.keys() if mtime is None: mtime = self.last_update_time()