Skip to content

Commit b72f5dd

Browse files
committed
fix: Ensure url ends with slash
1 parent 15bdaa9 commit b72f5dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/anaconda_auth/_conda/auth_handler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def _load_settings_for_channel(channel_name: str) -> dict[str, Any]:
5555

5656
# If we don't have an exact match, we attempt to match a URL pattern
5757
# The following was adjusted since we have channel name and not a URL
58-
parsed_url = urlparse(channel_name)
58+
url = channel_name
59+
if not url.endswith("/"):
60+
url += "/"
61+
parsed_url = urlparse(url)
5962
if not parsed_url.scheme or not parsed_url.netloc:
6063
continue
6164

0 commit comments

Comments
 (0)