aboutsummaryrefslogtreecommitdiffstats
path: root/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'sync.py')
-rwxr-xr-xsync.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sync.py b/sync.py
index 340b6be..cf81404 100755
--- a/sync.py
+++ b/sync.py
@@ -77,7 +77,11 @@ def update_object(kind, obj):
t[key] = None
t['data'] = json.dumps(obj)
cur = conn.cursor()
- cur.execute(comp, t)
+ try:
+ cur.execute(comp, t)
+ except:
+ print(kind, t['id'], t['data'])
+ raise
def last_updated(kind):
comp = sql.SQL('SELECT EXTRACT(EPOCH FROM MAX(updated)) - 1 FROM {}.{};'