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