bugfix: gave Report.__init__() twitter User object, not screen_name

remotes/1705286528371406548/stable1
b3yond 2018-01-18 13:59:37 +01:00
parent b174db3cfe
commit 72d0acb20a
1 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,11 @@ class RetweetBot(object):
else:
mentions = self.api.mentions_timeline(since_id=self.last_mention)
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
except tweepy.RateLimitError:
logger.error("Twitter API Error: Rate Limit Exceeded", exc_info=True)