Fix 500 exception when sending a non-string release name to appr
Fixes https://jira.coreos.com/browse/QS-120
This commit is contained in:
parent
18f1ccf80b
commit
a32edb646d
2 changed files with 32 additions and 1 deletions
|
@ -195,7 +195,13 @@ def push(namespace, package_name):
|
|||
if not 'release' in values:
|
||||
raise InvalidUsage('Missing release')
|
||||
|
||||
release_version = values['release']
|
||||
if not 'media_type' in values:
|
||||
raise InvalidUsage('Missing media_type')
|
||||
|
||||
if not 'blob' in values:
|
||||
raise InvalidUsage('Missing blob')
|
||||
|
||||
release_version = str(values['release'])
|
||||
media_type = values['media_type']
|
||||
force = request.args.get('force', 'false') == 'true'
|
||||
|
||||
|
|
Reference in a new issue