From a1d030abc441bbb671003df31ec952f32511f943 Mon Sep 17 00:00:00 2001 From: dessant Date: Wed, 25 Feb 2015 14:18:49 +0200 Subject: [PATCH] Fix IndexError when listing flowers with no description --- bin/garden | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/garden b/bin/garden index ada7eb9..57c1f9b 100755 --- a/bin/garden +++ b/bin/garden @@ -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