Merge pull request #3626 from minrk/token-log

server-api example typo: trim space in token file
This commit is contained in:
Erik Sundell
2021-09-27 12:51:07 +02:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ def get_token():
token_file = here.joinpath("service-token")
log.info(f"Loading token from {token_file}")
with token_file.open("r") as f:
token = f.read()
token = f.read().strip()
return token