mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
Filter out the init_command key
TypeError: 'init_command' is an invalid keyword argument for Connection()
This commit is contained in:
parent
467ec947ff
commit
ebf1ed3ef4
@ -27,7 +27,9 @@ class DatabaseWrapper(base.DatabaseWrapper):
|
||||
|
||||
|
||||
def get_new_connection(self, conn_params):
|
||||
conn_params["isolation_level"] = conn_params.pop("transaction_mode", "DEFERRED")
|
||||
super().get_new_connection(conn_params)
|
||||
filtered_params = conn_params.copy()
|
||||
filtered_params["isolation_level"] = filtered_params.pop("transaction_mode", "DEFERRED")
|
||||
_ = filtered_params.pop("init_command", None)
|
||||
super().get_new_connection(filtered_params)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user