Browse Source

Update raise exception in `Webauth.cli_login`

pull/384/head
sammiee5311 4 years ago
committed by Rossen
parent
commit
e8c929dda1
  1. 5
      steam/webauth.py

5
steam/webauth.py

@ -224,6 +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'])
else:
self.password = ''
raise LoginIncorrect(resp['message'])
@ -404,3 +406,6 @@ class EmailCodeRequired(WebAuthException):
class TwoFactorCodeRequired(WebAuthException):
pass
class TooManyTimesFailed(WebAuthException):
pass
Loading…
Cancel
Save