diff --git a/webnotes/handler.py b/webnotes/handler.py index 14ff0afbd0..57d16e5681 100755 --- a/webnotes/handler.py +++ b/webnotes/handler.py @@ -263,7 +263,8 @@ def print_json(): add_cookies() eprint("Content-Type: text/html; charset: utf-8") - print webnotes.cookies + if webnotes.cookies: + print webnotes.cookies import json print_zip(json.dumps(webnotes.response, default=json_handler, separators=(',',':')))