Skip to content

Commit

Permalink
Merge pull request #111 from SmoFlaDru/dev-benno
Browse files Browse the repository at this point in the history
Fix bug in form validation
  • Loading branch information
Bensge authored Aug 17, 2024
2 parents ddfeddb + 1ab4e4b commit 8cb6ac4
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 8cb6ac4

Please sign in to comment.