Skip to content

Commit

Permalink
fix: change condition in remove_thumnail_asset to resolve key error f…
Browse files Browse the repository at this point in the history
…or assets
  • Loading branch information
botanical committed Jan 29, 2025
1 parent 4c3a783 commit 060488d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dags/veda_data_pipeline/groups/processing_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def remove_thumbnail_asset(ti):
if assets.get("thumbnail"):
assets.pop("thumbnail")
# if thumbnail was only asset, delete assets
if not assets:
if not assets and (assets is not None):
payload.pop("assets")
return payload

Expand Down

0 comments on commit 060488d

Please sign in to comment.