Commit 02629b44 authored by Willi Rath's avatar Willi Rath

Allow for non-existant data and doch fields

parent ac1f271e
......@@ -461,13 +461,19 @@ def cli_run_renderer(argvec=None):
GitUpdate(yaml_dict, output_file=update_script)
# append all data download lines
for data in yaml_dict["data"]:
data["method"](data, output_file=update_script)
# append all data download lines (if any)
try:
for data in yaml_dict["data"]:
data["method"](data, output_file=update_script)
except KeyError as e:
pass
# append all doc download lines
for doc in yaml_dict["doc"]:
doc["method"](doc, output_file=update_script)
# append all doc download lines (if any)
try:
for doc in yaml_dict["doc"]:
doc["method"](doc, output_file=update_script)
except KeyError as e:
pass
PostProcessing(yaml_dict, output_file=update_script)
GitFinalize(yaml_dict, output_file=update_script)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment