Skip to content

Commit

Permalink
Merge pull request #271 from AlanWoo77/main
Browse files Browse the repository at this point in the history
Update client.py
  • Loading branch information
d60 authored Jan 29, 2025
2 parents 9bc7008 + bdee44f commit 3e922d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion twikit/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,11 @@ async def search_tweet(
if not item['entryId'].startswith(('tweet', 'search-grid')):
continue

tweet = tweet_from_data(self, item)
try:
tweet = tweet_from_data(self, item)
except KeyError:
tweet = None

if tweet is not None:
results.append(tweet)

Expand Down

0 comments on commit 3e922d6

Please sign in to comment.