fix(endpoints): added in proper error handling

before we would return a 400 without a message because the errors were not being caught

Issue: https://www.pivotaltracker.com/story/show/145459707

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
This commit is contained in:
Charlton Austin 2017-06-20 15:50:46 -04:00
parent 165486180d
commit 5e6aa6648b
3 changed files with 27 additions and 4 deletions

View file

@ -62,7 +62,7 @@ def create_manifest_label(tag_manifest, key, value, source_type_name, media_type
media_type_id = _get_media_type_id(media_type_name)
if media_type_id is None:
raise InvalidMediaTypeException
raise InvalidMediaTypeException()
source_type_id = _get_label_source_type_id(source_type_name)