From f8734226f7ce6f9f44e0cb85fca3c0b32cca3ec6 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 8 Jul 2019 00:43:24 +0100 Subject: [PATCH] make SteamClient.relogin() return login status --- steam/client/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 742af04..a3012f5 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -475,9 +475,13 @@ class SteamClient(CMClient, BuiltinBase): if client.relogin_available: client.relogin() else: client.login(user, pass) + + :returns: login result + :rtype: :class:`.EResult` """ if self.relogin_available: - self.login(self.username, '', self.login_key) + return self.login(self.username, '', self.login_key) + return EResult.Fail def login(self, username, password='', login_key=None, auth_code=None, two_factor_code=None, login_id=None): """Login as a specific user