From 641742528a8babbede92890bc0bef50a255c1bbb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 24 Oct 2018 09:30:41 +0200 Subject: [PATCH] Fixed F841 flake8 warning. --- django/db/backends/postgresql/creation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py index d1e766421fb..b37766b834b 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: self.log('Destroying old test database for alias %s…' % (