1. Andrew Godwin
  2. south

Commits

and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed 81a256b

Andy's patch to stop postgres erroring on silly fetchalls.

  • Participants
  • Parent commits 972b9be
  • Branches default

Comments (0)

Files changed (1)

File db/generic.py

View file
         if self.debug:
             print "   = %s" % sql, params
         cursor.execute(sql, params)
-        return cursor.fetchall()
+        try:
+            return cursor.fetchall()
+        except:
+            return []
 
 
     def get_column_value(self, column, name):