From 6447bd72a829e17df6e4954c2ad0d925a16ee514 Mon Sep 17 00:00:00 2001 From: Ryan Belgrave Date: Sun, 3 Dec 2017 17:02:05 -0600 Subject: [PATCH] fix flake8 on new disconnection guard --- ingredients_db/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.