Skip to content

Commit 52b93fe

Browse files
committed
minor fix in _sync_api_config
identified while debugging #1616 (comment)
1 parent baa3a38 commit 52b93fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def _sync_api_config() -> None:
534534

535535
p = urlparse(server)
536536
v1_server = f"{p.scheme}://{p.netloc}/"
537-
v1_base_url = p.path.lstrip("/")
537+
v1_base_url = p.path.rstrip("/") + "/" # requirement for urllib.parse.urljoin
538538
connection_retry_policy = RetryPolicy.HUMAN if retry_policy == "human" else RetryPolicy.ROBOT
539539
cache_dir = str(_root_cache_directory)
540540

0 commit comments

Comments
 (0)