From 768875bf0070d0e1c4da1e1eb8635c0e4b443620 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 5 Dec 2024 13:38:58 +0100 Subject: [PATCH] hosted.py: add workaround for missing config options --- hosted.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosted.py b/hosted.py index 95d4d01..de1e827 100644 --- a/hosted.py +++ b/hosted.py @@ -397,7 +397,12 @@ class Configuration(object): def parse_recursive(options, config, target): # print 'parsing', config 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 if option['type'] == 'list': items = []