Merge "Don't raise 404 on missing queues"

This commit is contained in:
Jenkins 2015-09-11 18:34:54 +00:00 committed by Gerrit Code Review
commit e4cab9ff0b
2 changed files with 4 additions and 4 deletions

View File

@ -111,9 +111,9 @@ class CollectionResource(object):
LOG.debug(ex) LOG.debug(ex)
raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex)) raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex))
except storage_errors.DoesNotExist as ex: except storage_errors.QueueDoesNotExist as ex:
LOG.debug(ex) LOG.debug(ex)
raise falcon.HTTPNotFound() messages = None
except Exception as ex: except Exception as ex:
LOG.exception(ex) LOG.exception(ex)

View File

@ -111,9 +111,9 @@ class CollectionResource(object):
LOG.debug(ex) LOG.debug(ex)
raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex)) raise wsgi_errors.HTTPBadRequestAPI(six.text_type(ex))
except storage_errors.DoesNotExist as ex: except storage_errors.QueueDoesNotExist as ex:
LOG.debug(ex) LOG.debug(ex)
raise falcon.HTTPNotFound() messages = None
except Exception as ex: except Exception as ex:
LOG.exception(ex) LOG.exception(ex)