diff --git a/platformio/commands/run.py b/platformio/commands/run.py index 8c1c470c..5f88253f 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -3,7 +3,7 @@ from click import command, echo, option, secho, style -from platformio.exception import ProjecEnvsNotAvaialable, UndefinedEnvPlatform +from platformio.exception import ProjectEnvsNotAvaialable, UndefinedEnvPlatform from platformio.platforms._base import PlatformFactory from platformio.util import get_project_config @@ -16,7 +16,7 @@ def cli(environment, target): config = get_project_config() if not config.sections(): - raise ProjecEnvsNotAvaialable() + raise ProjectEnvsNotAvaialable() for section in config.sections(): if section[:4] != "env:": diff --git a/platformio/exception.py b/platformio/exception.py index 7709870d..45fa3b30 100644 --- a/platformio/exception.py +++ b/platformio/exception.py @@ -82,6 +82,6 @@ class ProjectInitialized(PlatformioException): "Process it with `platformio run` command") -class ProjecEnvsNotAvaialable(PlatformioException): +class ProjectEnvsNotAvaialable(PlatformioException): MESSAGE = "Please setup environments in `platformio.ini` file."