fix: tolerate missing access_requests table

This commit is contained in:
Brad Stein 2026-01-21 03:23:28 -03:00
parent d1cbec8993
commit f524189897

View File

@ -40,6 +40,9 @@ class Database:
for stmt in ARIADNE_ACCESS_REQUEST_ALTER:
try:
conn.execute(stmt)
except psycopg.errors.UndefinedTable:
logger.info("access_requests table missing; skipping alter")
continue
except (psycopg.errors.LockNotAvailable, psycopg.errors.QueryCanceled) as exc:
logger.warning("schema ensure skipped due to lock timeout: %s", exc)
return