handle None for required position

pull/11/head
Rio Liu 2 years ago
parent 6577fb3ea6
commit 9c0891eb7d
  1. 2
      ceod/api/positions.py

@ -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…
Cancel
Save