Skip to content

Commit

Permalink
Fix IndexError when listing flowers with no description
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Feb 25, 2015
1 parent adbe84c commit a1d030a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/garden
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ class GardenTool(object):
name = repo['name'].split('.', 1)[-1]
if pattern and pattern not in name:
continue
desc = repo['description']

print("{} - {}".format(
name, repo['description'].splitlines()[0]))
name, desc.splitlines()[0] if desc else 'No description'))

def cmd_install(self):
opts = self.options
Expand Down

0 comments on commit a1d030a

Please sign in to comment.