File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77import os
88import time
99
10- import microcontroller
1110import adafruit_connection_manager
11+ import microcontroller
1212import wifi
1313
1414import 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, "
You can’t perform that action at this time.
0 commit comments