Browse files

remove some debugging info

  • Loading branch information...
1 parent aa1ae91 commit fd7b5f120b4a4b342e940ed2345e9795b28e84fc @pjz pjz committed Aug 7, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 aspen/gauntlet.py
View
6 aspen/gauntlet.py
@@ -197,14 +197,12 @@ def _typecast(key, value):
try:
value = int(value)
except ValueError:
- print "404 int typecasting; %s and %s" % (key, value)
- raise Response(404)
+ raise Response(404, body="404 int typecasting; %s and %s" % (key, value))
else: # otherwise it's URL-quoted ASCII
try:
value = value.decode('ASCII')
except UnicodeDecodeError:
- print "404 decoding typecasting; %s and %s" % (key, value)
- raise Response(400)
+ raise Response(400, body="404 decoding typecasting; %s and %s" % (key, value))
return key, value
def trailing_slash(request):

0 comments on commit fd7b5f1

Please sign in to comment.