Set crypto_db to None when dependencies aren't installed

This commit is contained in:
Tulir Asokan 2022-03-29 20:03:30 +03:00
parent 744d370f0b
commit 67e1921503

View file

@ -91,6 +91,8 @@ class Maubot(Program):
upgrade_table=PgCryptoStore.upgrade_table,
ignore_foreign_tables=self.args.ignore_foreign_tables,
)
else:
self.crypto_db = None
if self.config["plugin_databases.postgres"] == "default":
if self.db.scheme != Scheme.POSTGRES: