mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2025-01-02 13:39:11 +00:00
hosted.py: add workaround for missing config options
This commit is contained in:
parent
ff0c7fc375
commit
768875bf00
1 changed files with 6 additions and 1 deletions
|
@ -397,7 +397,12 @@ class Configuration(object):
|
||||||
def parse_recursive(options, config, target):
|
def parse_recursive(options, config, target):
|
||||||
# print 'parsing', config
|
# print 'parsing', config
|
||||||
for option in options:
|
for option in options:
|
||||||
if not 'name' in option:
|
# we're using the newly added 'conditions' feature of info-beamer
|
||||||
|
# which is currently not properly supported by hosted.py - that's
|
||||||
|
# why we ignore any options that are missing from the config. The
|
||||||
|
# downstream code must be written so that it only uses options we
|
||||||
|
# actually provide via the conditions.
|
||||||
|
if not 'name' in option or option['name'] not in config:
|
||||||
continue
|
continue
|
||||||
if option['type'] == 'list':
|
if option['type'] == 'list':
|
||||||
items = []
|
items = []
|
||||||
|
|
Loading…
Reference in a new issue