From 7aef9d2df57c2195f35bd85013e1b5ccb04624a5 Mon Sep 17 00:00:00 2001 From: "Sam.An" <56215891+sammiee5311@users.noreply.github.com> Date: Mon, 15 Nov 2021 09:20:28 +0900 Subject: [PATCH] Change exception name `TooManyTimesFailed` -> `TooManyLoginFailures` --- steam/webauth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/steam/webauth.py b/steam/webauth.py index fdb6930..aeabbab 100644 --- a/steam/webauth.py +++ b/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 \ No newline at end of file +class TooManyLoginFailures(WebAuthException): + pass