fix: tolerate missing access_requests table
This commit is contained in:
parent
d1cbec8993
commit
f524189897
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user