Skip to content

Commit

Permalink
Fixed login call
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberjunky committed Apr 20, 2020
1 parent b268db2 commit d36c415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garminconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d36c415

Please sign in to comment.