Skip to content

Commit

Permalink
Merge pull request #214 from gdcc/strip-trailing-slash-base-url
Browse files Browse the repository at this point in the history
Remove trailing slash of `base_url` upon `Api` initialization
  • Loading branch information
JR-1991 authored Aug 28, 2024
2 parents d57a351 + 217febc commit 5e077fd
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 5e077fd

Please sign in to comment.