Ticket #12458: 12458.diff

File 12458.diff, 856 bytes (added by Knut Nesheim, 15 years ago)
  • django/contrib/gis/db/backends/postgis/operations.py

     
    404404        """
    405405        cursor = self.connection._cursor()
    406406        try:
    407             cursor.execute('SELECT %s()' % func)
    408             row = cursor.fetchone()
    409         except:
    410             # Responsibility of callers to perform error handling.
    411             raise
     407            try:
     408                cursor.execute('SELECT %s()' % func)
     409                row = cursor.fetchone()
     410            except:
     411                # Responsibility of callers to perform error handling.
     412                raise
    412413        finally:
    413414            cursor.close()
    414415        return row[0]
Back to Top