[2.1.x] Fixed F841 flake8 warning.

Backport of 641742528a from master.
This commit is contained in:
Mariusz Felisiak 2018-10-24 09:30:41 +02:00 committed by Tim Graham
parent 5aeffc0535
commit 81530222c8
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class DatabaseCreation(BaseDatabaseCreation):
with self._nodb_connection.cursor() as cursor:
try:
self._execute_create_test_db(cursor, test_db_params, keepdb)
except Exception as e:
except Exception:
try:
if verbosity >= 1:
print("Destroying old test database for alias %s..." % (