Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb0731e

Browse filesBrowse files
committed
Fix token return.
1 parent 737c99a commit cb0731e
Copy full SHA for cb0731e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎fitbit/api.py‎

Copy file name to clipboardExpand all lines: fitbit/api.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.