Skip to content

Commit

Permalink
Follow the same convention as the rest of the file.
Browse files Browse the repository at this point in the history
Still cleanup after [16708]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
honzakral committed Aug 29, 2011
1 parent 0037ca4 commit 93f9263
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django/db/backends/postgresql_psycopg2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
try:
import psycopg2 as Database
import psycopg2.extensions
import psycopg2.Error
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
Expand Down Expand Up @@ -125,7 +124,7 @@ def close(self):
try:
self.connection.close()
self.connection = None
except psycopg2.Error:
except Database.Error:
# In some cases (database restart, network connection lost etc...)
# the connection to the database is lost without giving Django a
# notification. If we don't set self.connection to None, the error
Expand Down

0 comments on commit 93f9263

Please sign in to comment.