From 5f42319971ea9993c42f55cb4b7d970324caed27 Mon Sep 17 00:00:00 2001 From: Sebastian Weisgerber Date: Wed, 23 Jan 2019 08:58:59 +0100 Subject: [PATCH] Changed generic Except. in `...GooglePlayAPI` to LoginError --- gpapi/googleplay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpapi/googleplay.py b/gpapi/googleplay.py index 68c05c4..b91a9f1 100644 --- a/gpapi/googleplay.py +++ b/gpapi/googleplay.py @@ -311,7 +311,7 @@ class GooglePlayAPI(object): def executeRequestApi2(self, path, post_data=None, content_type=CONTENT_TYPE_URLENC, params=None): if self.authSubToken is None: - raise Exception("You need to login before executing any request") + raise LoginError("You need to login before executing any request") headers = self.getHeaders() headers["Content-Type"] = content_type @@ -354,7 +354,7 @@ class GooglePlayAPI(object): offset (int): is used to take result starting from an index. """ if self.authSubToken is None: - raise Exception("You need to login before executing any request") + raise LoginError("You need to login before executing any request") path = SEARCH_URL + "?c=3&q={}".format(requests.utils.quote(query)) # FIXME: not sure if this toc call should be here @@ -593,7 +593,7 @@ class GooglePlayAPI(object): """ if self.authSubToken is None: - raise Exception("You need to login before executing any request") + raise LoginError("You need to login before executing any request") if versionCode is None: # pick up latest version