Skip to content

Commit

Permalink
fix error message when there are no search results
Browse files Browse the repository at this point in the history
  • Loading branch information
antiboredom committed May 27, 2022
1 parent 9532d9d commit 32b8538
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions videogrep/videogrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def videogrep(
segments = search(files, query, search_type)

if len(segments) == 0:
if isinstance(query, list):
query = " ".join(query)
print("No results found for", query)
return False

Expand Down

0 comments on commit 32b8538

Please sign in to comment.