From b439e031adbadcb5979381640c1f8f393c53dcc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 19 Sep 2014 12:05:37 +0200 Subject: [PATCH] log an error when a synchronisation fails (#5543) --- tabellio/pcfdb/sync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 1c4d488..bce222c 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -334,7 +334,11 @@ class SyncFromPcfDbView(BrowserView): if not object in objects: continue t0 = time.time() - result = getattr(self, 'sync_'+object)(timestamp) + try: + result = getattr(self, 'sync_'+object)(timestamp) + except: + log.error('error during synchro of %s' % object) + raise duration = time.time() - t0 report.append('%-14s: %6s [%s]' % (object, result, format_duration(duration))) log.info('sync: %-14s: %6s [%s]' % (object, result, format_duration(duration)))