Deal better with it, when someone provides a URL instead of a server name (#50, #45)

This commit is contained in:
nanos 2023-06-15 07:56:53 +01:00
parent 3620b4944b
commit 9edbee7285

View file

@ -768,6 +768,9 @@ if __name__ == "__main__":
log("You must supply at least a server name and an access token")
sys.exit(1)
# in case someone provided the server name as url instead,
setattr(arguments, 'server', re.sub(r"^(https://)?([^/]*)/?$", "\\2", arguments.server))
runId = uuid.uuid4()