Merge pull request #6550 from ryanpetrello/fix-minutely-hourly

remove the limitation on (very) old DTSTART values for schedules

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-04-03 18:32:15 +00:00
committed by GitHub
4 changed files with 53 additions and 7 deletions

View File

@@ -4534,6 +4534,8 @@ class SchedulePreviewSerializer(BaseSerializer):
try:
Schedule.rrulestr(rrule_value)
except Exception as e:
import traceback
logger.error(traceback.format_exc())
raise serializers.ValidationError(_("rrule parsing failed validation: {}").format(e))
return value