From 67fc5f06f89274074348e94c32f63f49201db121 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 6 Nov 2014 21:15:16 +0100 Subject: [PATCH] Run "After" even when debug mode is on --- morss/morss.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 94ddf11..41cd7db 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -811,9 +811,10 @@ def cgi_app(environ, start_response): start_response(headers['status'], headers.items()) rss = Gather(rss, url, cache, options) + out = After(rss, options) if not DEBUG and not options.silent: - return After(rss, options) + return out log('done') @@ -867,9 +868,10 @@ def cli_app(): url, cache = Init(url, os.path.expanduser('~/.cache/morss'), options) rss = Fetch(url, cache, options) rss = Gather(rss, url, cache, options) + out = After(rss, options) if not DEBUG and not options.silent: - print After(rss, options) + print out log('done')