content wurde vor der Deklarierung verwendet

This commit is contained in:
Andreas Bielawski 2016-11-21 23:20:45 +01:00
parent 577eca8b76
commit 4e964c94e6

4
bot.py
View File

@ -282,8 +282,8 @@ def check_rss(bot, job):
link = v2.link link = v2.link
link_name = urlparse(link).netloc link_name = urlparse(link).netloc
if 'summary' in v2: if 'summary' in v2:
content = cleanRSS(content) content = cleanRSS(v2.summary)
content = remove_tags(v2.summary).lstrip() content = remove_tags(content).lstrip()
if len(content) > 250: if len(content) > 250:
content = content[0:250] + '...' content = content[0:250] + '...'
else: else: