From 182c4594e7761572e007b23022573728bbde889e Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 26 Jan 2018 13:35:42 -0500 Subject: [PATCH] Remove unsupported DB connection arguments for non-pooled DB handler --- data/database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/database.py b/data/database.py index c30225e50..b10df6bc1 100644 --- a/data/database.py +++ b/data/database.py @@ -282,6 +282,8 @@ def _db_from_url(url, db_kwargs, connect_timeout=DEFAULT_DB_CONNECT_TIMEOUT): parsed_url.drivername, db_kwargs['stale_timeout'], db_kwargs['max_connections']) else: logger.info('Connection pooling disabled for %s', parsed_url.drivername) + db_kwargs.pop('stale_timeout', None) + db_kwargs.pop('max_connections', None) wrapped_driver = _wrap_for_retry(driver) return wrapped_driver(parsed_url.database, **db_kwargs)