From fdacfa23c2ac116ee6e28494b9401ccf10efdd4f Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Sat, 13 May 2023 18:50:27 +0200 Subject: [PATCH] only update the gotify token if there's a value --- gotify_tray/gotify/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotify_tray/gotify/api.py b/gotify_tray/gotify/api.py index 2f0eed9..e21225a 100644 --- a/gotify_tray/gotify/api.py +++ b/gotify_tray/gotify/api.py @@ -27,7 +27,7 @@ class GotifySession(object): self.url = url if token: self.token = token - self.session.headers.update({"X-Gotify-Key": token}) + self.session.headers.update({"X-Gotify-Key": token}) def _get(self, endpoint: str = "/", **kwargs) -> requests.Response: return self.session.get(self.url + endpoint, **kwargs)