[Mpuls-commits] r3119 - in base/trunk: . mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 2 18:27:26 CEST 2010


Author: bh
Date: 2010-07-02 18:27:26 +0200 (Fri, 02 Jul 2010)
New Revision: 3119

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (MpulsCase.delete): Use log.exception
properly and add a log message.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-07-02 16:10:26 UTC (rev 3118)
+++ base/trunk/ChangeLog	2010-07-02 16:27:26 UTC (rev 3119)
@@ -1,5 +1,10 @@
 2010-07-02  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/model/case.py (MpulsCase.delete): Use log.exception
+	properly and add a log message.
+
+2010-07-02  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/model/case.py (MpulsCase.setEditor): Use log.exception
 	properly and add a log message.
 

Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2010-07-02 16:10:26 UTC (rev 3118)
+++ base/trunk/mpulsweb/model/case.py	2010-07-02 16:27:26 UTC (rev 3119)
@@ -876,8 +876,8 @@
             cur.execute(DELETE_CASE_SQL, {'id': self.id})
             conn.commit()
             return True
-        except Exception, e:
-            log.exception(e)
+        except Exception:
+            log.exception("Error trying to delete case %r" % (self.id,))
         finally:
             db.recycleConnection(conn, cur)
         return False



More information about the Mpuls-commits mailing list