Skip to content

Commit

Permalink
Adding a default value for sleep_window flag
Browse files Browse the repository at this point in the history
Otherwise it gets set to None and the sleep window parser crashes.
  • Loading branch information
mtlynch committed Apr 5, 2017
1 parent d891a64 commit ce75543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion greenpithumb/greenpithumb.py
Expand Up @@ -168,9 +168,10 @@ def main(args):
'--sleep_window',
action='append',
type=str,
default=[],
help=('Time window during which GreenPiThumb will not activate its '
'pump. Window should be in the form of a time range in 24-hour '
'format, such as "03:15-03:45"'))
'format, such as "03:15-03:45 (in the local time zone)"'))
parser.add_argument(
'-i',
'--image_path',
Expand Down

0 comments on commit ce75543

Please sign in to comment.