Show
Ignore:
Timestamp:
04/15/10 11:06:29 (2 years ago)
Author:
jorgearevalo
Message:

Small bug fixed in testcore: CHECK_EQUALS_DOUBLE instead of CHECK_EQUALS.
Added extra debug info in rtreader.py and rt_pg.c (to help fixing

RASTER_dumpAsWKTPolygons function)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • spike/wktraster/scripts/rtreader.py

    r4144 r5558  
    104104            if self._conn is None: 
    105105                self._conn = psycopg2.connect(self._connstr) 
    106         except: 
    107             raise RasterError("Falied to connect to %s" % self._connstr) 
     106        except Exception, e: 
     107            raise RasterError("Falied to connect to %s: %s" % (self._connstr, e)) 
    108108 
    109109    def _query_single_row(self, sql): 
     
    114114            cur = self._conn.cursor() 
    115115            cur.execute(sql) 
    116         except: 
    117             raise RasterError("Falied to execute query: %s" % sql) 
     116        except Exception, e: 
     117            raise RasterError("Failed to execute query %s: %s" % (sql, 
     118                        e)) 
    118119 
    119120        row = cur.fetchone()