Skip to content

Commit

Permalink
Prevent crash when options has no 'kivy' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ForeverWintr committed Feb 25, 2016
1 parent 31ab42e commit fc3ce04
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

0 comments on commit fc3ce04

Please sign in to comment.