project_manage_users: Prevent internal error when the user can't be found.

This commit is contained in:
Sybren A. Stüvel 2016-07-19 14:03:58 +02:00
parent fe148e1e6b
commit 54f3ca6924

View File

@ -317,6 +317,9 @@ def project_manage_users():
{'username': 1, 'email': 1,
'full_name': 1})
if not user:
return jsonify({'_status': 'ERROR'}), 404
user['_status'] = 'OK'
return jsonify(user)