From 41cc7359795c2c557d934e957d56e49e29760725 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 16 Jun 2023 20:06:00 +0300 Subject: [PATCH] VCS base exception is UserSideException --- platformio/package/vcsclient.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/platformio/package/vcsclient.py b/platformio/package/vcsclient.py index 058a4983..c10235c7 100644 --- a/platformio/package/vcsclient.py +++ b/platformio/package/vcsclient.py @@ -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