mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 12:54:58 +00:00
Changed generic Except. in ...GooglePlayAPI
to LoginError
This commit is contained in:
parent
c119d1ce5b
commit
5f42319971
@ -311,7 +311,7 @@ class GooglePlayAPI(object):
|
|||||||
|
|
||||||
def executeRequestApi2(self, path, post_data=None, content_type=CONTENT_TYPE_URLENC, params=None):
|
def executeRequestApi2(self, path, post_data=None, content_type=CONTENT_TYPE_URLENC, params=None):
|
||||||
if self.authSubToken is 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 = self.getHeaders()
|
||||||
headers["Content-Type"] = content_type
|
headers["Content-Type"] = content_type
|
||||||
|
|
||||||
@ -354,7 +354,7 @@ class GooglePlayAPI(object):
|
|||||||
offset (int): is used to take result starting from an index.
|
offset (int): is used to take result starting from an index.
|
||||||
"""
|
"""
|
||||||
if self.authSubToken is 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")
|
||||||
|
|
||||||
path = SEARCH_URL + "?c=3&q={}".format(requests.utils.quote(query))
|
path = SEARCH_URL + "?c=3&q={}".format(requests.utils.quote(query))
|
||||||
# FIXME: not sure if this toc call should be here
|
# FIXME: not sure if this toc call should be here
|
||||||
@ -593,7 +593,7 @@ class GooglePlayAPI(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if self.authSubToken is 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")
|
||||||
|
|
||||||
if versionCode is None:
|
if versionCode is None:
|
||||||
# pick up latest version
|
# pick up latest version
|
||||||
|
Loading…
Reference in New Issue
Block a user