diff --git a/torba/client/basedatabase.py b/torba/client/basedatabase.py index 3ed0fcae9..ac4c252b2 100644 --- a/torba/client/basedatabase.py +++ b/torba/client/basedatabase.py @@ -72,8 +72,9 @@ class AIOSQLite: self.executor.submit(self.__run_transaction_with_foreign_keys_disabled, fun, *args, **kwargs) ) - def __run_transaction_with_foreign_keys_disabled(self, fun: Callable[[sqlite3.Connection, Any, Any], Any], *args, - **kwargs): + def __run_transaction_with_foreign_keys_disabled(self, + fun: Callable[[sqlite3.Connection, Any, Any], Any], + *args, **kwargs): foreign_keys_enabled, = self.connection.execute("pragma foreign_keys").fetchone() if not foreign_keys_enabled: raise sqlite3.IntegrityError("foreign keys are disabled, use `AIOSQLite.run` instead")