Browse Source

Change exception name

`TooManyTimesFailed` -> `TooManyLoginFailures`
pull/384/head
Sam.An 3 years ago
committed by Rossen
parent
commit
7aef9d2df5
  1. 8
      steam/webauth.py

8
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

Loading…
Cancel
Save