diff options
| 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 |
| commit | 7d12d4aaa1403f5cfed1955a6c1a0af412abdb3a (patch) | |
| tree | e570735227743839039afb0ac350665698652fcb | |
| parent | f1a1c6e98835d11a3618587759b7f5e5e2d5c3ad (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-x | oe | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |
