mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
PyLint fix for CI
This commit is contained in:
@@ -20,8 +20,7 @@ def cli(environment, target, upload_port):
|
|||||||
if not config.sections():
|
if not config.sections():
|
||||||
raise ProjectEnvsNotAvaialable()
|
raise ProjectEnvsNotAvaialable()
|
||||||
|
|
||||||
envnames = [s[4:] for s in config.sections()]
|
unknown = set(environment) - set([s[4:] for s in config.sections()])
|
||||||
unknown = set(environment) - set(envnames)
|
|
||||||
if unknown:
|
if unknown:
|
||||||
raise UnknownEnvNames(", ".join(unknown))
|
raise UnknownEnvNames(", ".join(unknown))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user