From 3daed76df892adefbebd897fc58f75679e1ab1e5 Mon Sep 17 00:00:00 2001 From: liusheng Date: Tue, 10 May 2016 10:44:44 +0800 Subject: [PATCH] [Trivial] Remove an unused exception definition Change-Id: Ib747fdbf1a58f5e574a2a38bc52b8d5ff2215782 --- aodh/api/controllers/v2/base.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/aodh/api/controllers/v2/base.py b/aodh/api/controllers/v2/base.py index 70d8a6603..6c95c050f 100644 --- a/aodh/api/controllers/v2/base.py +++ b/aodh/api/controllers/v2/base.py @@ -43,14 +43,6 @@ class ClientSideError(wsme.exc.ClientSideError): super(ClientSideError, self).__init__(error, status_code) -class EntityNotFound(ClientSideError): - def __init__(self, entity, id): - super(EntityNotFound, self).__init__( - _("%(entity)s %(id)s Not Found") % {'entity': entity, - 'id': id}, - status_code=404) - - class ProjectNotAuthorized(ClientSideError): def __init__(self, id, aspect='project'): params = dict(aspect=aspect, id=id)