Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Follow the same convention as the rest of the file.

Still cleanup after [16708]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 93f92635b69c16a79ae546e060522eb437dc1c25 1 parent 0037ca4
Honza Král authored August 29, 2011
3  django/db/backends/postgresql_psycopg2/base.py
@@ -19,7 +19,6 @@
19 19
 try:
20 20
     import psycopg2 as Database
21 21
     import psycopg2.extensions
22  
-    import psycopg2.Error
23 22
 except ImportError, e:
24 23
     from django.core.exceptions import ImproperlyConfigured
25 24
     raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
@@ -125,7 +124,7 @@ def close(self):
125 124
         try:
126 125
             self.connection.close()
127 126
             self.connection = None
128  
-        except psycopg2.Error:
  127
+        except Database.Error:
129 128
             # In some cases (database restart, network connection lost etc...)
130 129
             # the connection to the database is lost without giving Django a
131 130
             # notification. If we don't set self.connection to None, the error

0 notes on commit 93f9263

Please sign in to comment.
Something went wrong with that request. Please try again.