[Mpuls-commits] r5250 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 19 17:33:51 CEST 2011


Author: bh
Date: 2011-08-19 17:33:49 +0200 (Fri, 19 Aug 2011)
New Revision: 5250

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.delete): Log
exceptions that happen in _do_delete_case


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-08-19 15:12:45 UTC (rev 5249)
+++ base/trunk/ChangeLog	2011-08-19 15:33:49 UTC (rev 5250)
@@ -1,5 +1,10 @@
 2011-08-19  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/case.py (CaseController.delete): Log
+	exceptions that happen in _do_delete_case
+
+2011-08-19  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/case.py (CaseController.delete): Prepare
 	for the possibility that deleting a case may raise arbitrary
 	exceptions, which will be the case when the meta-server is

Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2011-08-19 15:12:45 UTC (rev 5249)
+++ base/trunk/mpulsweb/controllers/case.py	2011-08-19 15:33:49 UTC (rev 5250)
@@ -108,7 +108,8 @@
         case = self._loadCase(id)
         try:
             return self._do_delete_case(case)
-        except Exception, e:
+        except Exception:
+            log.exception("Exception while trying to delete case %d", case.id)
             c.dialog_title = _("Case document not deleted!")
             c.dialog_text = _("The case can not be deleted because of an"
                               " unexpected problem.")



More information about the Mpuls-commits mailing list