Allow empty instructions

This commit is contained in:
Florian Dupret 2021-02-12 19:26:50 +01:00
commit 7e958a8e6a

View file

@ -35,6 +35,9 @@ def normalize_image_url(image) -> str:
def normalize_instructions(instructions) -> List[dict]:
if not instructions:
return []
# One long string split by (possibly multiple) new lines
if type(instructions) == str:
return [