From e7e80ff15299d7683b5f6c0fd96fb60bd721ce96 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 6 Feb 2018 11:25:38 +0200 Subject: [PATCH] Fix issue when no environment is specified --- platformio/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/run.py b/platformio/commands/run.py index f5f00670..cf6f7ae7 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -77,7 +77,7 @@ def cli(ctx, environment, target, upload_port, project_dir, silent, verbose, config.get("platformio", "env_default")) check_project_defopts(config) - check_project_envs(config, environment or env_default) + check_project_envs(config, environment or env_default or []) results = [] start_time = time()