From 67e192150399600b1d2165416f511fbdd320952f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 29 Mar 2022 20:03:30 +0300 Subject: [PATCH] Set crypto_db to None when dependencies aren't installed --- maubot/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maubot/__main__.py b/maubot/__main__.py index c9a8c07..c4cba44 100644 --- a/maubot/__main__.py +++ b/maubot/__main__.py @@ -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: