diff --git a/pyweb/djextdirect/__init__.py b/pyweb/djextdirect/__init__.py index 61d0ce7..cb2deee 100644 --- a/pyweb/djextdirect/__init__.py +++ b/pyweb/djextdirect/__init__.py @@ -15,7 +15,7 @@ * GNU General Public License for more details. """ -VERSION = ( 0, 5 ) +VERSION = ( 0, 7 ) VERSIONSTR = "v%d.%d" % VERSION diff --git a/pyweb/djextdirect/provider.py b/pyweb/djextdirect/provider.py index 2766fb9..21833e5 100644 --- a/pyweb/djextdirect/provider.py +++ b/pyweb/djextdirect/provider.py @@ -186,7 +186,7 @@ class Provider( object ): return HttpResponse( simplejson.dumps({ 'type': 'exception', 'message': 'malformed request', - 'where': unicode(err), + 'where': err.message, "tid": None, # dunno }, cls=DjangoJSONEncoder), mimetype="application/json" ) else: @@ -267,7 +267,7 @@ class Provider( object ): } if settings.DEBUG: traceback.print_exc( file=stderr ) - errinfo['message'] = unicode(err) + errinfo['message'] = err.message errinfo['where'] = traceback.format_exc() else: errinfo['message'] = 'The socket packet pocket has an error to report.' @@ -323,7 +323,7 @@ class Provider( object ): } if settings.DEBUG: traceback.print_exc( file=stderr ) - errinfo['message'] = unicode(err) + errinfo['message'] = err.message errinfo['where'] = traceback.format_exc() else: errinfo['message'] = 'The socket packet pocket has an error to report.'