mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fixed typo with exception
This commit is contained in:
@ -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:":
|
||||
|
@ -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."
|
||||
|
Reference in New Issue
Block a user