Merge "Raise non 404 Error in generate-tempest-plugin-list.py"

This commit is contained in:
Zuul 2019-07-03 03:13:04 +00:00 committed by Gerrit Code Review
commit 2df6114e44

View File

@ -84,6 +84,8 @@ def has_tempest_plugin(proj):
except HTTPError as err:
if err.code == 404:
return False
# We should not ignore non 404 errors.
raise err
p = re.compile(r'^tempest\.test_plugins', re.M)
if p.findall(r.read().decode('utf-8')):
return True