From 217febc6c9729ede94c60f20b28d789a6217d590 Mon Sep 17 00:00:00 2001 From: Jan Range Date: Wed, 28 Aug 2024 09:39:49 +0200 Subject: [PATCH] remove trailing slash of `base_url` upon init --- pyDataverse/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyDataverse/api.py b/pyDataverse/api.py index b364847..ac731a2 100644 --- a/pyDataverse/api.py +++ b/pyDataverse/api.py @@ -110,7 +110,7 @@ def __init__( if not isinstance(base_url, str): raise ApiUrlError("base_url {0} is not a string.".format(base_url)) - self.base_url = base_url + self.base_url = base_url.rstrip("/") self.client = None if not isinstance(api_version, str):