[FIX] odoo.py: handle call without arguments

This commit is contained in:
Christophe Simonis
2016-09-08 11:54:15 +02:00
parent 3f0fc7219c
commit 7dc7c306c1
+1 -1
View File
@@ -153,7 +153,7 @@ def main():
elif len(sys.argv) == 2 and sys.argv[1] in cmds:
cmds[sys.argv[1]]()
else:
if sys.argv[1] == 'gevent':
if len(sys.argv) > 1 and sys.argv[1] == 'gevent':
sys.argv.remove('gevent')
import gevent.monkey
gevent.monkey.patch_all()