Revision f6ff4b40 snf-cyclades-app/synnefo/api/util.py
b/snf-cyclades-app/synnefo/api/util.py | ||
---|---|---|
470 | 470 |
resp = func(request, *args, **kwargs) |
471 | 471 |
update_response_headers(request, resp) |
472 | 472 |
return resp |
473 |
except NotAllowedError: |
|
474 |
# Image Backend Unathorized |
|
475 |
fault = faults.Forbidden('Request not allowed.') |
|
476 |
return render_fault(request, fault) |
|
477 | 473 |
except faults.Fault, fault: |
478 | 474 |
if fault.code >= 500: |
479 | 475 |
log.exception('API fault') |
Also available in: Unified diff