Commit 6f3abe7f authored by Jérome Perrin's avatar Jérome Perrin

Formulator: stop trying to catch string exception

This was for Zope 2.7 and is invalid on py3
parent 44d60bc9
......@@ -863,9 +863,7 @@ class DateTimeValidator(Validator):
int(day),
hour,
minute, timezone))
# ugh, a host of string based exceptions (not since Zope 2.7)
except ('DateTimeError', 'Invalid Date Components', 'TimeError',
DateError, TimeError) :
except (DateError, TimeError):
self.raise_error('not_datetime', field)
# pass value through request in order to be restored in case if validation fail
if getattr(REQUEST, 'form', None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment