Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyftXero committed Dec 24, 2023
1 parent 49b46dc commit e8cbc61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ def validateChallenge(challenge_object, bypass_length=False, bypass_cost=False):

#user must exist

author = User.get(name=result.get('author'))
author = User.get(name=result.get('author',''))

if author == None:
result["fail_reason"] += f"; author '{challenge_object.get('author')}' doesn't exist (are they registered/in the DB)"
return result
Expand Down

0 comments on commit e8cbc61

Please sign in to comment.