Skip to content

Commit

Permalink
unfix the fix since it broke. Just ditch the debug info instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Aug 7, 2012
1 parent fd7b5f1 commit 44d2ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspen/gauntlet.py
Expand Up @@ -197,12 +197,12 @@ def _typecast(key, value):
try:
value = int(value)
except ValueError:
raise Response(404, body="404 int typecasting; %s and %s" % (key, value))
raise Response(404)
else: # otherwise it's URL-quoted ASCII
try:
value = value.decode('ASCII')
except UnicodeDecodeError:
raise Response(400, body="404 decoding typecasting; %s and %s" % (key, value))
raise Response(400)
return key, value

def trailing_slash(request):
Expand Down

0 comments on commit 44d2ca0

Please sign in to comment.