summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorДмитро Катюха <Dmytro.Katyukha@jbm.com.ua>2014-05-19 15:06:59 +0300
committerДмитро Катюха <Dmytro.Katyukha@jbm.com.ua>2014-05-19 15:06:59 +0300
commit7d12d4aaa1403f5cfed1955a6c1a0af412abdb3a (patch)
treee570735227743839039afb0ac350665698652fcb
parentf1a1c6e98835d11a3618587759b7f5e5e2d5c3ad (diff)
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 <module> if sys.argv[1] == 'run-tests': IndexError: list index out of range ```
-rwxr-xr-xoe2
1 files changed, 1 insertions, 1 deletions
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()