Skip to content

Commit

Permalink
fix exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
petergardfjall committed Oct 1, 2023
1 parent c801142 commit 395cfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garminexport/garminclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _login(self, username, password):
resp = self.session.post(PORTAL_LOGIN_URL, headers=headers, params=params, json=form_data)
log.debug("got auth response %d: %s", resp.status_code, resp.text)
if resp.status_code != 200:
raise ValueError("authentication attempt failed with f'{resp.status_code}': f'{resp.text}'")
raise ValueError(f'authentication attempt failed with {resp.status_code}: {resp.text}')
return self._extract_auth_ticket_url(resp.json())

def _claim_auth_ticket(self, auth_ticket_url):
Expand Down

0 comments on commit 395cfb2

Please sign in to comment.