diff --git a/ingredients_db/database.py b/ingredients_db/database.py index e7f83c7..4497b55 100644 --- a/ingredients_db/database.py +++ b/ingredients_db/database.py @@ -81,7 +81,7 @@ def ping_connection(dbapi_connection, connection_record, connection_proxy): cursor = dbapi_connection.cursor() try: cursor.execute("SELECT 1") - except: + except: # noqa: E722 connection_proxy._pool.dispose() # raise DisconnectionError - pool will try # connecting again up to three times before raising.