From 4e964c94e685c56cc2d66bf55079e245fbe6edbc Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 21 Nov 2016 23:20:45 +0100 Subject: [PATCH] content wurde vor der Deklarierung verwendet --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 1e7343c..9d8914a 100644 --- a/bot.py +++ b/bot.py @@ -282,8 +282,8 @@ def check_rss(bot, job): link = v2.link link_name = urlparse(link).netloc if 'summary' in v2: - content = cleanRSS(content) - content = remove_tags(v2.summary).lstrip() + content = cleanRSS(v2.summary) + content = remove_tags(content).lstrip() if len(content) > 250: content = content[0:250] + '...' else: