summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 173210b..e74a8b1 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -48,7 +48,13 @@ class RoutingState(object):
class Request(WebObRequest):
- pass
+
+ def __getattribute__(self, name):
+ try:
+ return WebObRequest.__getattribute__(self, name)
+ except UnicodeDecodeError as e:
+ logger.exception(e)
+ abort(400)
class Response(WebObResponse):