Merge pull request #51 from katyukha/oe-fix-1

Fixed bug in 'oe' script when passing no arguments
This commit is contained in:
xmo-odoo 2014-05-19 14:12:57 +02:00
commit be77d7a128
1 changed files with 1 additions and 1 deletions

2
oe
View File

@ -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()