From d36c415736c2697df10667f119bd11c0ed44dd62 Mon Sep 17 00:00:00 2001 From: Ron Klinkien Date: Mon, 20 Apr 2020 10:27:58 +0200 Subject: [PATCH] Fixed login call --- garminconnect/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garminconnect/__init__.py b/garminconnect/__init__.py index 706f76e..78d4239 100644 --- a/garminconnect/__init__.py +++ b/garminconnect/__init__.py @@ -140,7 +140,7 @@ def fetch_data(self, url): response.raise_for_status() except requests.exceptions.HTTPError as err: self.logger.debug("Exception occured during data retrieval - perhaps session expired - trying relogin: %s" % err) - self.login(self.email, self.password) + self.login() try: response = self.req.get(url, headers=self.headers) self.logger.debug("Fetch response code %s, and json %s", response.status_code, response.json())