Revision 00e9ef7b snf-pithos-app/pithos/api/functions.py

b/snf-pithos-app/pithos/api/functions.py
56 56
    SaveToBackendHandler, object_data_response, put_object_block, hashmap_md5, simple_list_response, api_method)
57 57
from pithos.api.settings import UPDATE_MD5
58 58

  
59
from pithos.backends.base import NotAllowedError, QuotaError, ContainerNotEmpty, ItemNotExists, VersionNotExists
59
from pithos.backends.base import NotAllowedError, QuotaError, ContainerNotEmpty, ItemNotExists, VersionNotExists, ContainerExists
60 60

  
61 61
from pithos.backends.filter import parse_filters
62 62

  
......
390 390
        raise Forbidden('Not allowed')
391 391
    except ValueError:
392 392
        raise BadRequest('Invalid policy header')
393
    except NameError:
393
    except ContainerExists:
394 394
        ret = 202
395 395

  
396 396
    if ret == 202 and policy:

Also available in: Unified diff