From 5e07c08055f7755e5546c24680e7eb7327a259c4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 16 Jun 2014 12:07:37 +0300 Subject: [PATCH] Fixed typo with exception --- platformio/commands/run.py | 4 ++-- platformio/exception.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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."