feeds & morss: clean up comments/empty lines

This commit is contained in:
2020-03-20 12:25:48 +01:00
parent 912c323c40
commit dd2651061f
2 changed files with 3 additions and 6 deletions

View File

@@ -435,8 +435,10 @@ def FeedFormat(rss, options):
if options.callback:
if re.match(r'^[a-zA-Z0-9\.]+$', options.callback) is not None:
return '%s(%s)' % (options.callback, rss.tojson())
else:
raise MorssException('Invalid callback var name')
elif options.json:
if options.indent:
return rss.tojson(encoding='UTF-8', indent=4)