From 0183d3c5e0f997ab2d37a6027116e78a1b29f44d Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:36:47 -0700 Subject: [PATCH] feat: adds support for domain with trailing slash --- src/aind_codeocean_api/codeocean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aind_codeocean_api/codeocean.py b/src/aind_codeocean_api/codeocean.py index 81c670b..4d167b3 100644 --- a/src/aind_codeocean_api/codeocean.py +++ b/src/aind_codeocean_api/codeocean.py @@ -67,7 +67,7 @@ def __init__(self, domain: str, token: str, api_version: int = 1) -> None: api_version : int Code Ocean API version """ - self.domain = domain + self.domain = domain.strip("/") self.token = token self.api_version = api_version self.logger = logging.getLogger("aind-codeocean-api")