Ticket #12459: 12459.diff

File 12459.diff, 831 bytes (added by Knut Nesheim, 14 years ago)
  • django/contrib/gis/db/backends/spatialite/operations.py

     
    211211        """
    212212        cursor = self.connection._cursor()
    213213        try:
    214             cursor.execute('SELECT %s()' % func)
    215             row = cursor.fetchone()
    216         except:
    217             # TODO: raise helpful exception here.
    218             raise
     214            try:
     215                cursor.execute('SELECT %s()' % func)
     216                row = cursor.fetchone()
     217            except:
     218                # TODO: raise helpful exception here.
     219                raise
    219220        finally:
    220221            cursor.close()
    221222        return row[0]
Back to Top