mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-24 22:04:57 +00:00
Merge pull request #77 from sweisgerber-dev/enhancement-specific-exception
Changed generic Except. in `...GooglePlayAPI` to LoginError
This commit is contained in:
commit
23b83ad81a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user