Fix :callback crash
parent
484432d804
commit
0ec7c2f3e6
|
@ -693,7 +693,7 @@ def After(rss, options):
|
|||
if item.content:
|
||||
item.content = conv.handle(item.content)
|
||||
|
||||
if re.match(r'^[a-zA-Z0-9\.]+$', options.callback) is not None:
|
||||
if options.callback and re.match(r'^[a-zA-Z0-9\.]+$', options.callback) is not None:
|
||||
return '%s(%s)' % (options.callback, rss.tojson())
|
||||
elif options.json:
|
||||
if options.indent:
|
||||
|
|
Loading…
Reference in New Issue