Removed two unrequired return statements

This commit is contained in:
Fabio Manganiello 2022-11-21 13:04:48 +01:00
parent a2c8e27bd8
commit 98d7c95aa7

View file

@ -50,7 +50,6 @@ def auth_endpoint():
except Exception as e:
log.warning('Invalid payload passed to the auth endpoint: ' + str(e))
abort(400)
return jsonify({'token': None})
expiry_days = payload.get('expiry_days')
expires_at = None
@ -65,4 +64,3 @@ def auth_endpoint():
})
except UserException as e:
abort(401, str(e))
return jsonify({'token': None})