Skip to content

Commit

Permalink
Fix error when no search results are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
rshipp committed Mar 9, 2016
1 parent 007020e commit 82be8a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chaser/chaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def search(args):
query = args

results = ccr.search(query)
if results == "No results found":
return

results.sort(key=lambda x: x.Name)
for pkg in results:
print("ccr/{name} {ver}".format(name=pkg.Name, ver=pkg.Version))
Expand Down

0 comments on commit 82be8a2

Please sign in to comment.