From 4e9296144979130b3eb07ba002238d4068076caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A0=20Serra=20Arrizabalaga?= Date: Fri, 5 Apr 2024 22:20:05 +0200 Subject: [PATCH] Change lstrip to replace as it was stripping extra characters --- client/ayon_shotgrid/addon.py | 2 +- .../ayon_shotgrid/plugins/publish/integrate_shotgrid_publish.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_shotgrid/addon.py b/client/ayon_shotgrid/addon.py index bf0e32d0..ba380f86 100644 --- a/client/ayon_shotgrid/addon.py +++ b/client/ayon_shotgrid/addon.py @@ -49,7 +49,7 @@ def create_shotgrid_session(self): from .lib import credentials sg_username = os.getenv("AYON_SG_USERNAME") - proxy = os.environ.get("HTTPS_PROXY", "").lstrip("https://") + proxy = os.environ.get("HTTPS_PROXY", "").replace("https://", "") return credentials.create_sg_session( self._shotgrid_server_url, diff --git a/client/ayon_shotgrid/plugins/publish/integrate_shotgrid_publish.py b/client/ayon_shotgrid/plugins/publish/integrate_shotgrid_publish.py index 34723ccd..77ae6cef 100644 --- a/client/ayon_shotgrid/plugins/publish/integrate_shotgrid_publish.py +++ b/client/ayon_shotgrid/plugins/publish/integrate_shotgrid_publish.py @@ -108,7 +108,7 @@ def process(self, instance): sg_local_storage["mac_path"] ) - file_partial_path = file_partial_path.lstrip("/") + file_partial_path = file_partial_path.replace("/", "") except ValueError as exc: raise KnownPublishError( f"Filepath {local_path} doesn't match the "