web/formfields.py
changeset 8695 358d8bed9626
parent 8666 1dd655788ece
child 9147 01124cfd4b1f
child 9179 570208f74a84
--- a/web/formfields.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/web/formfields.py	Thu Feb 14 15:38:25 2013 +0100
@@ -988,7 +988,7 @@
                 return None
             try:
                 value = form._cw.parse_datetime(value, self.etype)
-            except ValueError, ex:
+            except ValueError as ex:
                 raise ProcessFormError(unicode(ex))
         return value