Skip to content

Commit

Permalink
Fix bug in form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bensge committed Aug 17, 2024
1 parent c5f13c4 commit 1ab4e4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spybot/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ class AddSteamIDForm(forms.Form):
def clean_steamid(self):
cleaned_data = super().clean()
steamid = cleaned_data.get("steamid")
name = cleaned_data.get("name")

steam_info = get_steam_account_info(steamid)
if steam_info is None:
raise ValidationError("Can't load steam information for this user")

return cleaned_data
return steamid


"""
Expand Down

0 comments on commit 1ab4e4b

Please sign in to comment.