Revision fc517e59 snf-cyclades-app/synnefo/plankton/utils.py

b/snf-cyclades-app/synnefo/plankton/utils.py
50 50
    try:
51 51
        yield image_backend
52 52
    except backend.Forbidden as e:
53
        raise faults.Forbidden
54
    except backend.ImageNotFound:
55
        raise faults.ItemNotFound
53
        raise faults.Forbidden("Access forbidden")
54
    except backend.ImageNotFound as e:
55
        raise faults.ItemNotFound("Not found")
56 56
    except backend.InvalidMetadata as e:
57 57
        raise faults.BadRequest(str(e))
58 58
    except QuotaError as e:

Also available in: Unified diff