Throw right kind of error when token expired

This commit is contained in:
Domenico Iezzi 2017-10-22 17:25:58 +02:00
parent 5034244620
commit 0a7cca7be7
No known key found for this signature in database
GPG Key ID: 7AC94D5DDA2FB7EE

View File

@ -260,7 +260,7 @@ class GooglePlayAPI(object):
if len(response.payload.listResponse.cluster) == 0: if len(response.payload.listResponse.cluster) == 0:
# strange behaviour, probably due to # strange behaviour, probably due to
# expired token # expired token
raise RequestError('Unexpected behaviour, probably expired ' raise LoginError('Unexpected behaviour, probably expired '
'token') 'token')
cluster = response.payload.listResponse.cluster[0] cluster = response.payload.listResponse.cluster[0]
if cluster.doc[0].containerMetadata.nextPageUrl != "": if cluster.doc[0].containerMetadata.nextPageUrl != "":