We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0b29ed + 00ae871 commit 0b78eb8Copy full SHA for 0b78eb8
template-api-note-writer/src/cnapi/get_api_eligible_posts.py
@@ -89,6 +89,9 @@ def _parse_posts_eligible_response(resp: Dict) -> List[PostWithContext]:
89
if 'referenced_tweets' in item:
90
for ref in item["referenced_tweets"]:
91
referenced_post_id = ref["id"]
92
+ if referenced_post_id not in posts_by_id:
93
+ print(f"For post {post.post_id}, referenced post {referenced_post_id} not found in posts_by_id; skipping.")
94
+ continue
95
referenced_post_item = posts_by_id[referenced_post_id]
96
referenced_post = _parse_individual_post(referenced_post_item, media_by_key)
97
0 commit comments