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