From ed8bba526c4f6a75c24e56d990507d52f3cc5ff2 Mon Sep 17 00:00:00 2001 From: Nikolay Bryskin Date: Thu, 12 Oct 2017 11:32:12 +0300 Subject: [PATCH] Fix AttributeError in case of login timeout Fix "AttributeError 'NoneType' object has no attribute 'body'" when login timeout occurs --- steam/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 19a93cc..f4cee60 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -525,7 +525,7 @@ class SteamClient(CMClient, BuiltinBase): self.send(message) - resp = self.wait_msg(EMsg.ClientLogOnResponse, timeout=30) + resp = self.wait_msg(EMsg.ClientLogOnResponse, timeout=30, raises=True) if resp and resp.body.eresult == EResult.OK: self.sleep(0.5)