summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-05-11 19:18:36 +0000
committerGerrit Code Review <review@openstack.org>2017-05-11 19:18:36 +0000
commit8770b6ed5ce0e8c98a9818cec67e773bd4e841f1 (patch)
tree79b63397a2560b351036036f2a401d99024ae355 /openstackclient/common
parent96a3bae3c1cb6f76cdb1e32ec8b94acb681594fb (diff)
parente8f3103cc14b62226a5d71d2018b8e1c96c8a2d8 (diff)
downloadpython-openstackclient-8770b6ed5ce0e8c98a9818cec67e773bd4e841f1.tar.gz
Merge "Ignore more exceptions in quota list"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index 6ed9e370..0d5cb9be 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -135,7 +135,10 @@ class ListQuota(command.Lister):
try:
data = compute_client.quotas.get(p)
except Exception as ex:
- if type(ex).__name__ == 'NotFound':
+ if (
+ type(ex).__name__ == 'NotFound' or
+ ex.http_status >= 400 and ex.http_status <= 499
+ ):
# Project not found, move on to next one
LOG.warning("Project %s not found: %s" % (p, ex))
continue