strip whitespace from clan uris

This commit is contained in:
Jörg Thalheim
2024-01-04 16:30:26 +01:00
parent 7f21e99736
commit f9dd2e0926

View File

@@ -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://"):