From 7d12d4aaa1403f5cfed1955a6c1a0af412abdb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=BE=20=D0=9A=D0=B0=D1=82?= =?UTF-8?q?=D1=8E=D1=85=D0=B0?= Date: Mon, 19 May 2014 15:06:59 +0300 Subject: [PATCH] Fixed bug in 'oe' script when passing no arguments When no arguments passed to 'oe' script next exception was thrown: ``` Traceback (most recent call last): File "./oe", line 5, in if sys.argv[1] == 'run-tests': IndexError: list index out of range ``` --- oe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oe b/oe index 2da32cbe31d..03c037b735c 100755 --- a/oe +++ b/oe @@ -2,7 +2,7 @@ if __name__ == '__main__': import sys - if sys.argv[1] == 'run-tests': + if len(sys.argv) > 1 and sys.argv[1] == 'run-tests': sys.exit(0) import openerpcommand.main openerpcommand.main.run()