toastdriven/django-tastypie — pull request #519 by acdha (2012-06-06 15:17:28+00:00)
Title: determine_format: handle malformed HTTP Accept values

Some clients cause tastypie to return a 500 error because they send a request
with an HTTP Accept header which contains an invalid MIME type (e.g. any
value without a "/" other than "*", which mimeparse handles).

This patch simply causes tastypie to catch the ValueError and fail down to
the default format