summaryrefslogtreecommitdiff
path: root/repo/hooks
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-28 15:53:29 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-28 15:53:29 -0400
commit41a8f0c37e99cc730aba1ee7d2bfd01bc3ffba3e (patch)
treefa6211850efee69878801e6ff862a7975a7c625b /repo/hooks
parent96c18f39b0f6ae12a0ed06ecd7b1a5259bd235ee (diff)
downloadgpsd-41a8f0c37e99cc730aba1ee7d2bfd01bc3ffba3e.tar.gz
Avoid a spurious error in a probably impossible case.
Diffstat (limited to 'repo/hooks')
-rwxr-xr-xrepo/hooks/ciabot.py2
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)