Browse Source

Fix AttributeError in case of login timeout

Fix "AttributeError 'NoneType' object has no attribute 'body'" when login timeout occurs
pull/129/head
Nikolay Bryskin 8 years ago
committed by GitHub
parent
commit
ed8bba526c
  1. 2
      steam/client/__init__.py

2
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)

Loading…
Cancel
Save