mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +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):
|
def get_new_connection(self, conn_params):
|
||||||
conn_params["isolation_level"] = conn_params.pop("transaction_mode", "DEFERRED")
|
filtered_params = conn_params.copy()
|
||||||
super().get_new_connection(conn_params)
|
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