diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-10-24 09:30:41 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-24 09:28:25 -0400 |
| commit | 81530222c8a51883c815beb45d2b7e5512877a82 (patch) | |
| tree | 2b62149120bba039485d8963fdd19e6a8f340194 | |
| parent | 5aeffc05350b5bea06cf81fac74875a752757a9a (diff) | |
[2.1.x] Fixed F841 flake8 warning.
Backport of 641742528a8babbede92890bc0bef50a255c1bbb from master.
| -rw-r--r-- | django/db/backends/postgresql/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py index 2cd8e88a70..4b3c9d1d61 100644 --- a/django/db/backends/postgresql/creation.py +++ b/django/db/backends/postgresql/creation.py @@ -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..." % ( |
