Fix :callback crash

master
pictuga 2014-06-28 01:13:29 +02:00
parent 484432d804
commit 0ec7c2f3e6
1 changed files with 1 additions and 1 deletions

View File

@ -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: