Raise 404 error instead of sending it directly.

pull/7/head
Ferry Boender 10 years ago
parent fe51013643
commit 20010fb0a4
  1. 4
      src/webapp.py

@ -204,9 +204,7 @@ class WebAppHandler(BaseHTTPRequestHandler):
elif hasattr(self, 'default'):
method_cb = getattr(self, 'default')
else:
# FIXME: Raise Error
self.send_error(404, "Not found")
return
raise HTTPError(404, "Not found")
method_cb(**params)
except HTTPError, e:
if e.status_code not in (401, ):

Loading…
Cancel
Save