Updated openstack/openstack
Project: openstack-infra/yaml2ical cee12f20b1102f760dc260cd160b775a6b0022cd Clarify KeyError() in Schedule.__init__() If a YAML file contains an invalid recurrence the error is: --- Invalid YAML meeting schedule definition - missing attribute 'weekly.' < stack strace > KeyError: 'weekly.' --- This is quite right 'weekly.' isn't a missing attribute it's an invalid recurrence type. Refactor the code slightly to clarify the error message --- Invalid meeting recurrence 'weekly.' - valid types: ['biweekly-odd', 'biweekly-even', 'weekly'] < stack strace > KeyError: 'weekly.' --- Change-Id: I8618bba454037744b82b5b96175d71ef8b2a652f
This commit is contained in:
committed by
Gerrit Code Review
parent
2065fb1754
commit
2078f2ba1f