diff options
Diffstat (limited to 'repo/hooks/ciabot.py')
-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) |