From e91f65048d0c209dbbbec59323ba993685276d35 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Fri, 8 May 2020 17:17:11 +0200 Subject: [PATCH] cli - fixes cli without params Cli was crashing if no param was provided --- cli/teos_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/teos_cli.py b/cli/teos_cli.py index ad6e29e..5c8b56b 100644 --- a/cli/teos_cli.py +++ b/cli/teos_cli.py @@ -484,7 +484,7 @@ if __name__ == "__main__": if opt in ["-h", "--help"]: sys.exit(show_usage()) - command = args.pop(0) + command = args.pop(0) if args else None if command in commands: main(command, args, command_line_conf) elif not command: