handle None for required position
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Rio Liu 2021-09-06 21:05:52 -04:00
parent 6577fb3ea6
commit 9c0891eb7d
1 changed files with 1 additions and 1 deletions

View File

@ -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