Skip to content

Commit

Permalink
Merge pull request #11 from ForeverWintr/master
Browse files Browse the repository at this point in the history
Prevent crash when options has no 'kivy' attribute
  • Loading branch information
matham committed May 19, 2016
2 parents 31ab42e + fc3ce04 commit 2717676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/garden
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GardenTool(object):
else:
parser.print_help()

if self.options.kivy and garden_kivy_dir is None:
if getattr(self.options, 'kivy', False) and garden_kivy_dir is None:
print('--kivy provided; cannot find kivy')
sys.exit(0)

Expand Down

1 comment on commit 2717676

@Fak3
Copy link

@Fak3 Fak3 commented on 2717676 Jun 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can someone please release this? This bug hurts quite a bit.

Please sign in to comment.