Skip to content

Commit

Permalink
Throw right kind of error when token expired
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenico Iezzi committed Oct 22, 2017
1 parent 5034244 commit 0a7cca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpapi/googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def search(self, query, nb_result, offset=None):
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 != "":
Expand Down

0 comments on commit 0a7cca7

Please sign in to comment.