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 "