Skip to content

Commit

Permalink
remove trailing slash of base_url upon init
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Aug 28, 2024
1 parent d57a351 commit 217febc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyDataverse/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 217febc

Please sign in to comment.