fix bug when calling

This commit is contained in:
Fabien Benureau 2014-04-21 19:13:05 +02:00
parent 84fd5d7649
commit 48ad7e9b69

View File

@ -58,7 +58,7 @@ def _update_check(config, ui):
def execute(raw_args=sys.argv):
# loading config
config = configs.Config()
if raw_args[1] != 'init':
if len(raw_args) > 1 and raw_args[1] != 'init':
try:
config.load()
except IOError as e: