diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-28 15:53:29 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-28 15:53:29 -0400 |
commit | 41a8f0c37e99cc730aba1ee7d2bfd01bc3ffba3e (patch) | |
tree | fa6211850efee69878801e6ff862a7975a7c625b /repo/hooks | |
parent | 96c18f39b0f6ae12a0ed06ecd7b1a5259bd235ee (diff) | |
download | gpsd-41a8f0c37e99cc730aba1ee7d2bfd01bc3ffba3e.tar.gz |
Avoid a spurious error in a probably impossible case.
Diffstat (limited to 'repo/hooks')
-rwxr-xr-x | repo/hooks/ciabot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repo/hooks/ciabot.py b/repo/hooks/ciabot.py index 8084525d..57e80d41 100755 --- a/repo/hooks/ciabot.py +++ b/repo/hooks/ciabot.py @@ -168,7 +168,7 @@ if __name__ == "__main__": # Call this script with -n to dump the notification mail to stdout mailit = True - if sys.argv[1] == '-n': + if len(sys.argv) > 1 and sys.argv[1] == '-n': mailit = False sys.argv.pop(1) |