Failing early makes sense to me. You seem to know the code well, so do you know where the exception you are talking about is raised? I think it would also make sense to check the value of "resp" at https://github.com/openstack/python-glanceclient/blob/14b9ba29811d63aa6b61e877376cc538c32aeadc/glanceclient/v2/images.py#L108 .
Failing early makes sense to me. You seem to know the code well, so do you know where the exception you are talking about is raised? I think it would also make sense to check the value of "resp" at https:/ /github. com/openstack/ python- glanceclient/ blob/14b9ba2981 1d63aa6b61e8773 76cc538c32aeadc /glanceclient/ v2/images. py#L108 .