Skip to content

Commit

Permalink
🐛 Skip the reference instead of building an empty one.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibonihoo committed Jun 17, 2024
1 parent 05561da commit 59fa89c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wom_tributary/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def collect_new_references_for_twitter_timeline(
timeline,
auth,
num_items_to_ask)
if not activities:
return None
summary = tweet_summarizers.generate_basic_html_summary(
activities,
keep_only_after_datetime,
Expand Down Expand Up @@ -333,6 +335,8 @@ def collect_new_references_for_mastodon_timeline(
timeline,
auth,
num_items_to_ask)
if not activities:
return None
summary = tweet_summarizers.generate_basic_html_summary(
activities,
keep_only_after_datetime,
Expand Down

0 comments on commit 59fa89c

Please sign in to comment.