summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-10-24 09:30:41 +0200
committerTim Graham <timograham@gmail.com>2018-10-24 09:38:53 -0400
commit9be172f585a97c4ee0f0eefce622a158a4a300ac (patch)
tree0367c09f0ef30dd32a4e73534bc6d090acb8983e
parentae416b17885daad6e6b008c4c9a7af86e33ef00b (diff)
[2.0.x] Fixed F841 flake8 warning.
Backport of 641742528a8babbede92890bc0bef50a255c1bbb from master.
-rw-r--r--django/db/backends/postgresql/creation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py
index a93bdbb4a1..e5c201e034 100644
--- a/django/db/backends/postgresql/creation.py
+++ b/django/db/backends/postgresql/creation.py
@@ -57,7 +57,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..." % (