We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888b082 commit b48db4fCopy full SHA for b48db4f
conditional/__init__.py
@@ -164,8 +164,12 @@ def gatekeep(username):
164
token = request.headers.get("X-VOTE-TOKEN", "")
165
if token != app.config["VOTE_TOKEN"]:
166
return "Users cannot access this page", 403
167
+ try:
168
+ gatekeep_data = gatekeep_status(username)
169
+ except KeyError:
170
+ return "", 404
171
- return gatekeep_status(username), 200
172
+ return gatekeep_data, 200
173
174
175
@app.errorhandler(404)
0 commit comments