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:
Jenkins 2016-11-25 02:47:42 +00:00 committed by Gerrit Code Review
parent 2065fb1754
commit 2078f2ba1f
1 changed files with 1 additions and 1 deletions

@ -1 +1 @@
Subproject commit c29e042cd18ccc952a76d7ad5ed82bd7c69d7912
Subproject commit cee12f20b1102f760dc260cd160b775a6b0022cd