diff options
-rwxr-xr-x | sync.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 {}.{};' |