Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Update check for the retweeted status portion of the tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
rdempsey committed Mar 14, 2017
1 parent 904f903 commit ed51210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traptor/traptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def _find_rule_matches(self, tweet_dict):
query = query + " " + tweet_dict['user']['screen_name'].encode('utf-8')

# Retweeted parts
if tweet_dict['retweeted_status']:
if tweet_dict.get('retweeted_status', None) is not None:
# Status
query = query + " " + tweet_dict['retweeted_status']['text'].encode("utf-8")

Expand Down

0 comments on commit ed51210

Please sign in to comment.