mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 12:54:58 +00:00
Throw right kind of error when token expired
This commit is contained in:
parent
5034244620
commit
0a7cca7be7
@ -260,7 +260,7 @@ class GooglePlayAPI(object):
|
||||
if len(response.payload.listResponse.cluster) == 0:
|
||||
# strange behaviour, probably due to
|
||||
# expired token
|
||||
raise RequestError('Unexpected behaviour, probably expired '
|
||||
raise LoginError('Unexpected behaviour, probably expired '
|
||||
'token')
|
||||
cluster = response.payload.listResponse.cluster[0]
|
||||
if cluster.doc[0].containerMetadata.nextPageUrl != "":
|
||||
|
Loading…
Reference in New Issue
Block a user