Author: Honza_Kral Date: 2011-08-29 16:01:25 -0700 (Mon, 29 Aug 2011) New Revision: 16710
Modified: django/trunk/django/db/backends/postgresql_psycopg2/base.py Log: Follow the same convention as the rest of the file. Still cleanup after [16708] Modified: django/trunk/django/db/backends/postgresql_psycopg2/base.py =================================================================== --- django/trunk/django/db/backends/postgresql_psycopg2/base.py 2011-08-29 17:28:15 UTC (rev 16709) +++ django/trunk/django/db/backends/postgresql_psycopg2/base.py 2011-08-29 23:01:25 UTC (rev 16710) @@ -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) @@ -125,7 +124,7 @@ 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 -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.