[Mpuls-commits] r1801 - in wasko/branches/2.0: . jmdweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 16:13:49 CET 2010


Author: bh
Date: 2010-02-25 16:13:47 +0100 (Thu, 25 Feb 2010)
New Revision: 1801

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/jmdweb/lib/search.py
Log:
* jmdweb/lib/search.py (Search.queryDB): Remove a try-except that
simply suppressed all exception without even logging it. Now the
exception is not handled in queryDB at all.
This exception hander masked a real bug in the JMD database
currently in use for development.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-25 14:50:25 UTC (rev 1800)
+++ wasko/branches/2.0/ChangeLog	2010-02-25 15:13:47 UTC (rev 1801)
@@ -1,3 +1,11 @@
+2010-02-25  Bernhard Herzog  <bh at intevation.de>
+
+	* jmdweb/lib/search.py (Search.queryDB): Remove a try-except that
+	simply suppressed all exception without even logging it. Now the
+	exception is not handled in queryDB at all.
+	This exception hander masked a real bug in the JMD database
+	currently in use for development.
+
 2010-02-25  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* jmdweb/templates/casemanagement/dialogs/success_set_phase.mako,

Modified: wasko/branches/2.0/jmdweb/lib/search.py
===================================================================
--- wasko/branches/2.0/jmdweb/lib/search.py	2010-02-25 14:50:25 UTC (rev 1800)
+++ wasko/branches/2.0/jmdweb/lib/search.py	2010-02-25 15:13:47 UTC (rev 1801)
@@ -122,13 +122,10 @@
         rows = []
         con, cur = None, None
         try:
-            try:
-                con = db.getConnection()
-                cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor)
-                cur.execute(sql, fields)
-                rows = cur.fetchall()
-            except:
-                return {}
+            con = db.getConnection()
+            cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor)
+            cur.execute(sql, fields)
+            rows = cur.fetchall()
         finally:
             db.recycleConnection(con, cur)
         return rows



More information about the Mpuls-commits mailing list