mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Removed unused variables that are overwritten.
This commit is contained in:
@@ -25,7 +25,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
||||
with self._nodb_connection.cursor() as cursor:
|
||||
try:
|
||||
cursor.execute("CREATE DATABASE %s" % qn(target_database_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
if keepdb:
|
||||
return
|
||||
try:
|
||||
|
||||
@@ -41,7 +41,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
||||
with self._nodb_connection.cursor() as cursor:
|
||||
try:
|
||||
cursor.execute(creation_sql)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
if keepdb:
|
||||
return
|
||||
try:
|
||||
|
||||
@@ -823,7 +823,6 @@ class SQLCompiler:
|
||||
"""
|
||||
Returns an iterator over the results from executing this query.
|
||||
"""
|
||||
converters = None
|
||||
if results is None:
|
||||
results = self.execute_sql(MULTI)
|
||||
fields = [s[0] for s in self.select[0:self.col_count]]
|
||||
|
||||
Reference in New Issue
Block a user