Last active
August 23, 2017 16:34
-
-
Save wklm/e6407b6fea29f840292da0955926d8a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if resp.status_code == 200: | |
return resp | |
if resp.status_code == 404: | |
raise ModelNotFound(instance_type, self.model_names) | |
if resp.status_code == 500: | |
raise InternalInventoryError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment