Skip to content

Commit

Permalink
fix flake8 on new disconnection guard
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Dec 3, 2017
1 parent bd70184 commit 6447bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingredients_db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6447bd7

Please sign in to comment.