joestump / django-ajax

A simple framework for creating AJAX endpoints in Django.
http://github.com/joestump/django-ajax
BSD 3-Clause "New" or "Revised" License
260 stars 53 forks source link

Exceptions: message decoding fails #39

Closed jelko closed 11 years ago

jelko commented 11 years ago

If an AJAXError is raised, I get another error which belongs to the message encoding inside of AJAXError.

'exceptions.ImportError' object has no attribute 'decode'

You can fix it by removing decode() in this line. Don't know if this would have any other implications, yet, though.

'message': smart_str(self.msg.decode())
joestump commented 11 years ago

There's a PR outstanding that will fix this when I merge it in.

cam-stitt commented 11 years ago

Fixed by https://github.com/joestump/django-ajax/pull/40