# HG changeset patch # User Julien Cristau # Date 1444122442 -7200 # Node ID eabacd3c6f16495ed960aecde39a81ffe16723b0 # Parent b1834143fec84786844fda104b0cae8122c154d0 [web] CubicWebPublisher.ajax_error_handler must return bytes diff -r b1834143fec8 -r eabacd3c6f16 web/application.py --- a/web/application.py Mon Oct 05 17:57:03 2015 +0200 +++ b/web/application.py Tue Oct 06 11:07:22 2015 +0200 @@ -500,7 +500,7 @@ # don't overwrite it if it's already set req.status_out = status json_dumper = getattr(ex, 'dumps', lambda : json.dumps({'reason': text_type(ex)})) - return json_dumper() + return json_dumper().encode('utf-8') # special case handling