diff --git a/src/redturtle/prenotazioni/browser/bookings_export.py b/src/redturtle/prenotazioni/browser/bookings_export.py index ed04d24e..c9b794d5 100644 --- a/src/redturtle/prenotazioni/browser/bookings_export.py +++ b/src/redturtle/prenotazioni/browser/bookings_export.py @@ -238,7 +238,7 @@ def __call__(self): self.booking_creation_to = datetime.datetime.fromisoformat( booking_creation_to ) - except: + except ValueError: raise BadRequest( api.portal_translate( _("Badly composed `booking_creation_to` value")