This is because "012345".isdigit() is True and keystoneclient raises HTTPClientError(https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/openstack/common/apiclient/exceptions.py#L462) rather than NotFound. So, the code https://github.com/openstack/python-openstackclient/blob/master/openstackclient/common/utils.py#L35 can not catch the excepted exception.
This is because "012345".isdigit() is True and keystoneclient raises HTTPClientError(https:/ /github. com/openstack/ python- keystoneclient/ blob/master/ keystoneclient/ openstack/ common/ apiclient/ exceptions. py#L462) rather than NotFound. So, the code https:/ /github. com/openstack/ python- openstackclient /blob/master/ openstackclient /common/ utils.py# L35 can not catch the excepted exception.