only update the gotify token if there's a value

This commit is contained in:
dries.k
2023-05-13 18:50:27 +02:00
parent b585e3bb97
commit fdacfa23c2

View File

@@ -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)