Skip to content

Commit cb0731e

Browse files
committed
Fix token return.
1 parent 737c99a commit cb0731e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fitbit/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def refresh_token(self):
144144
obtained in step 2. Only do the refresh if there is `token_updater(),`
145145
which saves the token.
146146
"""
147+
token = None
147148
if self.session.token_updater:
148-
149149
token = self.session.refresh_token(
150150
self.refresh_token_url,
151151
auth=HTTPBasicAuth(self.client_id, self.client_secret)

0 commit comments

Comments
 (0)