Skip to content

Commit 2ae6f78

Browse files
committed
Fix removing parameter
1 parent fef6a6b commit 2ae6f78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mautrix/util/async_db/asyncpg.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ def __init__(
4040
self.scheme = Scheme.COCKROACH
4141
# Send postgres scheme to asyncpg
4242
url = url.with_scheme("postgres")
43-
self._exit_on_ice = (db_args or {}).pop("meow_exit_on_ice", True)
44-
db_args.pop("init_commands", None)
43+
self._exit_on_ice = True
44+
if db_args:
45+
self._exit_on_ice = db_args.pop("meow_exit_on_ice", True)
46+
db_args.pop("init_commands", None)
4547
super().__init__(
4648
url,
4749
db_args=db_args,

0 commit comments

Comments
 (0)