Skip to content

Commit

Permalink
feature: fix length error with None value
Browse files Browse the repository at this point in the history
  • Loading branch information
christinestraub committed Jan 4, 2024
1 parent c126a92 commit b033319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prepline_general/api/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ def pipeline_api(
)

extract_image_block_types = (
json.loads(m_extract_image_block_types[0]) if len(m_extract_image_block_types) else None
json.loads(m_extract_image_block_types[0])
if m_extract_image_block_types and len(m_extract_image_block_types)
else None
)

extract_image_block_to_payload = bool(extract_image_block_types)
Expand Down

0 comments on commit b033319

Please sign in to comment.