diff --git a/cads_catalogue/database.py b/cads_catalogue/database.py index 0a4135a..28c69ca 100644 --- a/cads_catalogue/database.py +++ b/cads_catalogue/database.py @@ -403,9 +403,7 @@ def ensure_engine(connection_string, **kwargs) -> sa.engine.Engine: } engine_kwargs.update(kwargs) if engine_kwargs["pool_size"] == -1: - engine = sa.create_engine( - connection_string, poolclass=sa.pool.NullPool, **engine_kwargs - ) + engine = sa.create_engine(connection_string, poolclass=sa.pool.NullPool) else: engine = sa.create_engine(connection_string, **engine_kwargs) return engine