summaryrefslogtreecommitdiff
path: root/repo/hooks/ciabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'repo/hooks/ciabot.py')
-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)