From f9dd2e0926d26b8c3302dd9c3989ebcdf7973d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 4 Jan 2024 16:30:26 +0100 Subject: [PATCH] strip whitespace from clan uris --- pkgs/clan-cli/clan_cli/clan_uri.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/clan-cli/clan_cli/clan_uri.py b/pkgs/clan-cli/clan_cli/clan_uri.py index 276562814..dafc702b4 100644 --- a/pkgs/clan-cli/clan_cli/clan_uri.py +++ b/pkgs/clan-cli/clan_cli/clan_uri.py @@ -41,6 +41,8 @@ class ClanParameters: class ClanURI: # Initialize the class with a clan:// URI def __init__(self, uri: str) -> None: + # users might copy whitespace along with the uri + uri = uri.strip() self._full_uri = uri # Check if the URI starts with clan:// if uri.startswith("clan://"):