Add checking for 404 errors that aborts create project (#1183)

My apologies. I fixed my version, then added the code in your __init__.py to loop and wait for the not found error to disappear. By then, however, the error stopped occurring and I didn't notice that errors.py wasn't recognizing the error.
This commit is contained in:
Ross Scroggs
2020-05-12 06:34:21 -07:00
committed by GitHub
parent f71a14126e
commit 6a421d3b78

View File

@@ -328,6 +328,10 @@ def get_gapi_error_detail(e,
message = error['error']['errors'][0]['message']
except KeyError:
message = error['error']['message']
if http_status == 404:
if 'Requested entity was not found' in message or 'does not exist' in message:
error = _create_http_error_dict(404, ErrorReason.NOT_FOUND.value,
message)
else:
if 'error_description' in error:
if error['error_description'] == 'Invalid Value':