diff --git a/tap_instagram/streams.py b/tap_instagram/streams.py index 3eafa32..6ae7136 100644 --- a/tap_instagram/streams.py +++ b/tap_instagram/streams.py @@ -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"), }