Added better error reporting for unicode errors in sessions

This commit is contained in:
Armin Ronacher 2012-10-30 14:47:17 +00:00
parent 8339cb3508
commit 2b885ce4dc
2 changed files with 17 additions and 0 deletions

View file

@ -10,6 +10,12 @@
"""
class UnexpectedUnicodeError(AssertionError, UnicodeError):
"""Raised in places where we want some better error reporting for
unexpected unicode or binary data.
"""
class DebugFilesKeyError(KeyError, AssertionError):
"""Raised from request.files during debugging. The idea is that it can
provide a better error message than just a generic KeyError/BadRequest.