Browse Source
Change exception name
`TooManyTimesFailed` -> `TooManyLoginFailures`
pull/367/head
Sam.An
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
steam/webauth.py
|
|
@ -224,8 +224,8 @@ class WebAuth(object): |
|
|
|
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']) |
|
|
@ -407,5 +407,5 @@ class EmailCodeRequired(WebAuthException): |
|
|
|
class TwoFactorCodeRequired(WebAuthException): |
|
|
|
pass |
|
|
|
|
|
|
|
class TooManyTimesFailed(WebAuthException): |
|
|
|
pass |
|
|
|
class TooManyLoginFailures(WebAuthException): |
|
|
|
pass |
|
|
|