Revision 352e1a26 lib/http/server.py
b/lib/http/server.py | ||
---|---|---|
35 | 35 |
from ganeti import utils |
36 | 36 |
from ganeti import netutils |
37 | 37 |
from ganeti import compat |
38 |
from ganeti import errors |
|
38 | 39 |
|
39 | 40 |
|
40 | 41 |
WEEKDAYNAME = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] |
... | ... | |
233 | 234 |
|
234 | 235 |
# Call actual request handler |
235 | 236 |
result = handler.HandleRequest(handler_context) |
236 |
except (http.HttpException, KeyboardInterrupt, SystemExit): |
|
237 |
except (http.HttpException, errors.RapiTestResult, |
|
238 |
KeyboardInterrupt, SystemExit): |
|
237 | 239 |
raise |
238 | 240 |
except Exception, err: |
239 | 241 |
logging.exception("Caught exception") |
Also available in: Unified diff