bugfix: gave Report.__init__() twitter User object, not screen_name
This commit is contained in:
parent
b174db3cfe
commit
72d0acb20a
|
@ -111,7 +111,11 @@ class RetweetBot(object):
|
||||||
else:
|
else:
|
||||||
mentions = self.api.mentions_timeline(since_id=self.last_mention)
|
mentions = self.api.mentions_timeline(since_id=self.last_mention)
|
||||||
for status in mentions:
|
for status in mentions:
|
||||||
reports.append(report.Report(status.author, "twitter", status.text, status.id, status.created_at))
|
reports.append(report.Report(status.author.screen_name,
|
||||||
|
"twitter",
|
||||||
|
status.text,
|
||||||
|
status.id,
|
||||||
|
status.created_at))
|
||||||
return reports
|
return reports
|
||||||
except tweepy.RateLimitError:
|
except tweepy.RateLimitError:
|
||||||
logger.error("Twitter API Error: Rate Limit Exceeded", exc_info=True)
|
logger.error("Twitter API Error: Rate Limit Exceeded", exc_info=True)
|
||||||
|
|
Loading…
Reference in a new issue