diff -r 7d4bc4c54326 -r 9f75f5de2134 web/views/editcontroller.py --- a/web/views/editcontroller.py Thu Sep 10 08:00:03 2009 +0200 +++ b/web/views/editcontroller.py Thu Sep 10 08:00:44 2009 +0200 @@ -194,13 +194,13 @@ # NOTE: raising ValidationError here is not a good solution because # we can't gather all errors at once. Hopefully, the new 3.6.x # form handling will fix that - if attrtype == 'Int': + if value and attrtype == 'Int': try: value = int(value) except ValueError: raise ValidationError(entity.eid, {attr: self.req._("invalid integer value")}) - elif attrtype == 'Float': + elif value and attrtype == 'Float': try: value = float(value) except ValueError: