Skip to content
Snippets Groups Projects
Verified Commit eea46658 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Handle empty dict

parent 31a2f79c
No related branches found
No related tags found
2 merge requests!100WIP: Filling XLSX: Seems to be working.,!93Filling XLSX: Everything except multiple choice.
Pipeline #48407 passed
......@@ -188,7 +188,7 @@ class TemplateFiller:
if not isinstance(value, (dict, list)):
self[name] = value
elif isinstance(value, dict):
if isinstance(list(value.items())[0], list):
if not value or isinstance(list(value.items())[0], list):
continue
old_path = self._current_path
new_path = self._current_path.copy() + [name]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment