Skip to content

Commit

Permalink
handle streams with no media_product_type
Browse files Browse the repository at this point in the history
  • Loading branch information
prratek committed Feb 23, 2022
1 parent 952cf90 commit fcacffd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tap_instagram/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict:
"user_id": context["user_id"],
"media_id": record["id"],
"media_type": record["media_type"],
"media_product_type": record["media_product_type"],
# media_product_type not present for carousel children media
"media_product_type": record.get("media_product_type"),
}


Expand Down

0 comments on commit fcacffd

Please sign in to comment.