diff --git a/zaqar/transport/wsgi/v1_1/messages.py b/zaqar/transport/wsgi/v1_1/messages.py index 5782ac973..3d742ade8 100644 --- a/zaqar/transport/wsgi/v1_1/messages.py +++ b/zaqar/transport/wsgi/v1_1/messages.py @@ -111,9 +111,9 @@ class CollectionResource(object): LOG.debug(ex) raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex)) - except storage_errors.DoesNotExist as ex: + except storage_errors.QueueDoesNotExist as ex: LOG.debug(ex) - raise falcon.HTTPNotFound() + messages = None except Exception as ex: LOG.exception(ex) diff --git a/zaqar/transport/wsgi/v2_0/messages.py b/zaqar/transport/wsgi/v2_0/messages.py index 5782ac973..3d742ade8 100644 --- a/zaqar/transport/wsgi/v2_0/messages.py +++ b/zaqar/transport/wsgi/v2_0/messages.py @@ -111,9 +111,9 @@ class CollectionResource(object): LOG.debug(ex) raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex)) - except storage_errors.DoesNotExist as ex: + except storage_errors.QueueDoesNotExist as ex: LOG.debug(ex) - raise falcon.HTTPNotFound() + messages = None except Exception as ex: LOG.exception(ex)