Skip to content

Commit 62927ff

Browse files
committed
ran black and pylint again
1 parent 339294d commit 62927ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/wifi/expanded/requests_wifi_api_fitbit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import os
88
import time
99

10-
import microcontroller
1110
import adafruit_connection_manager
11+
import microcontroller
1212
import wifi
1313

1414
import adafruit_requests
@@ -210,15 +210,15 @@ def time_calc(input_time):
210210
# You can manually set this token into settings.toml
211211
print(f" | Next Token: {nvmtoken.decode()}")
212212
print(" | 🔑 Next token written to NVM Successfully!")
213-
except (OSError) as e:
213+
except OSError as e:
214214
print("OS Error:", e)
215215
continue
216216
if DEBUG:
217217
print("Token Expires in: ", time_calc(fitbit_token_expiration))
218218
print("Scope: ", fitbit_scope)
219219
print("Token Type: ", fitbit_token_type)
220220
print("UserID: ", fitbit_user_id)
221-
except (KeyError) as e:
221+
except KeyError as e:
222222
print("Key Error:", e)
223223
print("Expired token, invalid permission, or (key:value) pair error.")
224224
time.sleep(SLEEP_TIME)
@@ -303,7 +303,7 @@ def time_calc(input_time):
303303
else:
304304
print(" | Waiting for latest sync...")
305305
print(" | ❌ Not enough values for today to display yet.")
306-
except (KeyError) as keyerror:
306+
except KeyError as keyerror:
307307
print(f"Key Error: {keyerror}")
308308
print(
309309
"Too Many Requests, "

0 commit comments

Comments
 (0)