From 62688bddb0b50363023368b712b985801084269f Mon Sep 17 00:00:00 2001 From: Philipp Joos Date: Thu, 10 Oct 2019 15:43:49 +0200 Subject: [PATCH] Modifications according to requested changes --- steam/client/builtins/apps.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/steam/client/builtins/apps.py b/steam/client/builtins/apps.py index 8f93516..9fba6a9 100644 --- a/steam/client/builtins/apps.py +++ b/steam/client/builtins/apps.py @@ -246,11 +246,11 @@ class Apps(object): return EResult.Timeout, None, None def request_free_license(self, app_ids): - """ Request license for free app + """ Request license for free app(s) :param app_ids: list of app ids :type app_ids: :class:`list` - :return: format ``(granted_appids, granted_packageids)`` + :return: format ``(eresult, result_details, receipt_info)`` :rtype: :class:`tuple` .. code:: python @@ -259,11 +259,11 @@ class Apps(object): """ resp = self.send_job_and_wait(MsgProto(EMsg.ClientRequestFreeLicense), {'appids': map(int, app_ids)}, - timeout=30, + timeout=10, ) - if resp.eresult != EResult.OK: - return EResult(resp.eresult) + if resp: + return EResult(resp.eresult), resp.granted_appids, resp.granted_packageids else: - return resp.granted_appids, resp.granted_packageids \ No newline at end of file + return EResult.Timeout, None, None