Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Don't crash when no results are returned#35

Open
Fuzion24 wants to merge 1 commit intoegirault:masterfrom
Fuzion24:master
Open

Don't crash when no results are returned#35
Fuzion24 wants to merge 1 commit intoegirault:masterfrom
Fuzion24:master

Conversation

@Fuzion24
Copy link
Contributor

Searching for strings that return no results crashes.

➜  googleplay-api git:(master) ✗ python search.py asdasda
Title;Package name;Creator;Super Dev;Price;Offer Type;Version Code;Size;Rating;Num Downloads
Traceback (most recent call last):
  File "search.py", line 39, in <module>
    doc = message.doc[0]
  File "/usr/local/lib/python2.7/dist-packages/protobuf-2.5.0-py2.7.egg/google/protobuf/internal/containers.py", line 64, in __getitem__
IndexError: list index out of range

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant