Browse Source

update djextdirect to 0.7

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
83d045ce0c
  1. 2
      pyweb/djextdirect/__init__.py
  2. 6
      pyweb/djextdirect/provider.py

2
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

6
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.'

Loading…
Cancel
Save