From 6a40731248c261b9cdafc87a0a852c09d6297aef Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 7 Nov 2014 18:44:59 +0100 Subject: [PATCH] Return output when DEBUG is on Much more convenient to actually debug --- morss/morss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index c1c0b20..b521d9e 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -788,7 +788,7 @@ def cgi_app(environ, start_response): if options.html or options.reader: headers['content-type'] = 'text/html' - elif options.debug or options.txt: + elif options.txt: headers['content-type'] = 'text/plain' elif options.json: headers['content-type'] = 'application/json' @@ -818,7 +818,7 @@ def cgi_app(environ, start_response): rss = Gather(rss, url, cache, options) out = After(rss, options) - if not DEBUG and not options.silent: + if not options.silent: return out log('done') @@ -875,7 +875,7 @@ def cli_app(): rss = Gather(rss, url, cache, options) out = After(rss, options) - if not DEBUG and not options.silent: + if not options.silent: print out log('done')