From 48ad7e9b6973e9e4f26063c8ea6ad5734645da18 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Mon, 21 Apr 2014 19:13:05 +0200 Subject: [PATCH] fix bug when calling --- pubs/pubs_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/pubs_cmd.py b/pubs/pubs_cmd.py index 0fba8ff..62e2499 100644 --- a/pubs/pubs_cmd.py +++ b/pubs/pubs_cmd.py @@ -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: