Revision 2eda9c61 snf-cyclades-app/synnefo/plankton/utils.py

b/snf-cyclades-app/synnefo/plankton/utils.py
34 34
from contextlib import contextmanager
35 35
from synnefo.plankton import backend
36 36
from snf_django.lib.api import faults
37
from pithos.backends.base import QuotaError
37 38

  
38 39

  
39 40
@contextmanager
......
54 55
        raise faults.ItemNotFound
55 56
    except backend.InvalidMetadata as e:
56 57
        raise faults.BadRequest(str(e))
58
    except QuotaError as e:
59
        raise faults.OverLimit
57 60
    finally:
58 61
        image_backend.close()

Also available in: Unified diff