From 012ccfe42428bdb2d96d0e5878e26054339d620e Mon Sep 17 00:00:00 2001 From: James Edington Date: Sun, 21 Feb 2021 19:39:21 -0600 Subject: [PATCH] TypeError handles invalid datatypes --- steam/guard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/guard.py b/steam/guard.py index b66072d..39bbd36 100644 --- a/steam/guard.py +++ b/steam/guard.py @@ -183,7 +183,7 @@ class SteamAuthenticator(object): try: if not re.search(r'[&\?].*digits', resp['uri']): resp['uri'] += '&digits=5' - except (KeyError, AttributeError): + except (KeyError, TypeError): pass self.secrets = resp