On line 514 (and 512) of glance/common/client.py unknown HTTP status codes are raised with an "Unknown error occurred!" using the base python Exception class. This is not a manageable or catchable way of dealing with glance client errors resulting from HTTP error codes...
Any exceptions raised from doing a request should be some sort of HttpException class or something (anything) other than the base Exception class. This will allow consumers of this client to appropriately catch and deal with these exceptions from Glance in a manner that is specific to the sort of error that occurred. HttpException is a vastly different and less severe exception type than just plain-ol' Exception, which is very vague...
Fix proposed to branch: master /review. openstack. org/5366
Review: https:/