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

Don't crash when no results are returned #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions search.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
sys.exit(1)

print_header_line()
doc = message.doc[0]
for c in doc.child:
if len(message.doc) > 0:
doc = message.doc[0]
for c in doc.child:
print_result_line(c)