handle None for required position
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
6577fb3ea6
commit
9c0891eb7d
|
@ -36,7 +36,7 @@ def update_positions():
|
|||
}, 400
|
||||
|
||||
for position in required:
|
||||
if position not in body:
|
||||
if not body.get(position):
|
||||
return {
|
||||
'error': f'missing required position: {position}'
|
||||
}, 400
|
||||
|
|
Loading…
Reference in New Issue