Skip to content
Snippets Groups Projects
Commit 7d12d4aa authored by Дмитро Катюха's avatar Дмитро Катюха
Browse files

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
```
parent f1a1c6e9
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment