Skip to content

Commit

Permalink
Fix a bug when args is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
joh committed Sep 15, 2013
1 parent e3fe6a8 commit b925fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whenchanged/whenchanged.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main():
command = []
recursive = False

if args[0] == '-r':
if args and args[0] == '-r':
recursive = True
args.pop(0)

Expand Down

0 comments on commit b925fcc

Please sign in to comment.