Skip to content

Commit

Permalink
Change exception name
Browse files Browse the repository at this point in the history
`TooManyTimesFailed` -> `TooManyLoginFailures`
  • Loading branch information
sammiee5311 authored and rossengeorgiev committed Jan 6, 2022
1 parent e8c929d commit 7aef9d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions steam/webauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def login(self, password='', captcha='', email_code='', twofactor_code='', langu
raise EmailCodeRequired(resp['message'])
elif resp.get('requires_twofactor', False):
raise TwoFactorCodeRequired(resp['message'])
elif 'short time period' in resp.get('message', ''):
raise TooManyTimesFailed(resp['message'])
elif 'too many login failures' in resp.get('message', ''):
raise TooManyLoginFailures(resp['message'])
else:
self.password = ''
raise LoginIncorrect(resp['message'])
Expand Down Expand Up @@ -407,5 +407,5 @@ class EmailCodeRequired(WebAuthException):
class TwoFactorCodeRequired(WebAuthException):
pass

class TooManyTimesFailed(WebAuthException):
pass
class TooManyLoginFailures(WebAuthException):
pass

0 comments on commit 7aef9d2

Please sign in to comment.