From 758ff404a875e7769c5cb0e54be5d809ec64066b Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 21 Mar 2020 23:25:25 +0100 Subject: [PATCH] morss: fix cgi_app silent output *Must* return sth --- morss/morss.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 2006805..49d27c3 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -552,8 +552,11 @@ def cgi_app(environ, start_response): rss = FeedGather(rss, url, options) out = FeedFormat(rss, options) - if not options.silent: - return out + if options.silent: + return [''] + + else: + return [out] def middleware(func): " Decorator to turn a function into a wsgi middleware "