mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
VCS base exception is UserSideException
This commit is contained in:
@ -18,14 +18,10 @@ import subprocess
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from platformio import proc
|
||||
from platformio.package.exception import (
|
||||
PackageException,
|
||||
PlatformioException,
|
||||
UserSideException,
|
||||
)
|
||||
from platformio.package.exception import PlatformioException, UserSideException
|
||||
|
||||
|
||||
class VCSBaseException(PackageException):
|
||||
class VCSBaseException(UserSideException):
|
||||
pass
|
||||
|
||||
|
||||
@ -75,7 +71,7 @@ class VCSClientBase:
|
||||
else:
|
||||
assert self.run_cmd(["--version"])
|
||||
except (AssertionError, OSError, PlatformioException) as exc:
|
||||
raise UserSideException(
|
||||
raise VCSBaseException(
|
||||
"VCS: `%s` client is not installed in your system" % self.command
|
||||
) from exc
|
||||
return True
|
||||
|
Reference in New Issue
Block a user