Allow empty instructions (#165)

This commit is contained in:
sephrat 2021-02-12 19:43:08 +01:00 committed by GitHub
commit 98f5439907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 [