Change return on abort for clarity

This commit is contained in:
Galen G 2019-11-01 11:44:53 -04:00 committed by Galen Guyer
parent e72c83aafc
commit 8ee1e7b9cd
No known key found for this signature in database
GPG key ID: 6E39D00D77389D4E

View file

@ -190,8 +190,7 @@ def vm_details(vmid):
limits=user.limits,
usage_check=usage_check)
else:
abort(403)
return None
return abort(403)
@app.route("/vm/<string:vmid>/power/<string:action>", methods=['POST'])
@ -496,8 +495,7 @@ def settings():
ignored_pools=db_ignored_pools,
allowed_users=db_allowed_users)
else:
abort(403)
return None
return abort(403)
@app.route("/pool/<string:pool>/ignore", methods=['POST', 'DELETE'])