Skip to content

Commit

Permalink
ran black and pylint again
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDevon3 committed Mar 17, 2024
1 parent 339294d commit 62927ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/wifi/expanded/requests_wifi_api_fitbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import os
import time

import microcontroller
import adafruit_connection_manager
import microcontroller
import wifi

import adafruit_requests
Expand Down Expand Up @@ -210,15 +210,15 @@ def time_calc(input_time):
# You can manually set this token into settings.toml
print(f" | Next Token: {nvmtoken.decode()}")
print(" | 🔑 Next token written to NVM Successfully!")
except (OSError) as e:
except OSError as e:
print("OS Error:", e)
continue
if DEBUG:
print("Token Expires in: ", time_calc(fitbit_token_expiration))
print("Scope: ", fitbit_scope)
print("Token Type: ", fitbit_token_type)
print("UserID: ", fitbit_user_id)
except (KeyError) as e:
except KeyError as e:
print("Key Error:", e)
print("Expired token, invalid permission, or (key:value) pair error.")
time.sleep(SLEEP_TIME)
Expand Down Expand Up @@ -303,7 +303,7 @@ def time_calc(input_time):
else:
print(" | Waiting for latest sync...")
print(" | ❌ Not enough values for today to display yet.")
except (KeyError) as keyerror:
except KeyError as keyerror:
print(f"Key Error: {keyerror}")
print(
"Too Many Requests, "
Expand Down

0 comments on commit 62927ff

Please sign in to comment.