mirror of
https://github.com/skoelle/icloud-contacts-sync.git
synced 2026-09-17 23:40:24 +00:00
sync more logging when error
This commit is contained in:
+5
-1
@@ -94,7 +94,11 @@ def sync_account(conn, account, href_to_uid_cache: dict):
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.exception("[%s] Sync-Lauf %s fehlgeschlagen", account.name, run_id)
|
||||
db.finish_sync_run(conn, run_id, "failed", error_message=str(exc))
|
||||
print(f"SYNC-FEHLER [{account.name}]: {exc}", file=sys.stderr)
|
||||
detail = str(exc)
|
||||
if "Unknown column" in detail:
|
||||
detail += " — Fehlende Spalte? ALTER TABLE ausführen: siehe sql/schema.sql"
|
||||
db.finish_sync_run(conn, run_id, "failed", error_message=detail)
|
||||
raise
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user