Skip to content

Commit

Permalink
Fix removing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 22, 2022
1 parent fef6a6b commit 2ae6f78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mautrix/util/async_db/asyncpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def __init__(
self.scheme = Scheme.COCKROACH
# Send postgres scheme to asyncpg
url = url.with_scheme("postgres")
self._exit_on_ice = (db_args or {}).pop("meow_exit_on_ice", True)
db_args.pop("init_commands", None)
self._exit_on_ice = True
if db_args:
self._exit_on_ice = db_args.pop("meow_exit_on_ice", True)
db_args.pop("init_commands", None)
super().__init__(
url,
db_args=db_args,
Expand Down

0 comments on commit 2ae6f78

Please sign in to comment.