From 41a8f0c37e99cc730aba1ee7d2bfd01bc3ffba3e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Mar 2010 15:53:29 -0400 Subject: Avoid a spurious error in a probably impossible case. --- repo/hooks/ciabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repo') 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) -- cgit v1.2.1