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 7
7
import os
8
8
import time
9
9
10
- import microcontroller
11
10
import adafruit_connection_manager
11
+ import microcontroller
12
12
import wifi
13
13
14
14
import adafruit_requests
@@ -210,15 +210,15 @@ def time_calc(input_time):
210
210
# You can manually set this token into settings.toml
211
211
print (f" | Next Token: { nvmtoken .decode ()} " )
212
212
print (" | 🔑 Next token written to NVM Successfully!" )
213
- except ( OSError ) as e :
213
+ except OSError as e :
214
214
print ("OS Error:" , e )
215
215
continue
216
216
if DEBUG :
217
217
print ("Token Expires in: " , time_calc (fitbit_token_expiration ))
218
218
print ("Scope: " , fitbit_scope )
219
219
print ("Token Type: " , fitbit_token_type )
220
220
print ("UserID: " , fitbit_user_id )
221
- except ( KeyError ) as e :
221
+ except KeyError as e :
222
222
print ("Key Error:" , e )
223
223
print ("Expired token, invalid permission, or (key:value) pair error." )
224
224
time .sleep (SLEEP_TIME )
@@ -303,7 +303,7 @@ def time_calc(input_time):
303
303
else :
304
304
print (" | Waiting for latest sync..." )
305
305
print (" | ❌ Not enough values for today to display yet." )
306
- except ( KeyError ) as keyerror :
306
+ except KeyError as keyerror :
307
307
print (f"Key Error: { keyerror } " )
308
308
print (
309
309
"Too Many Requests, "
You can’t perform that action at this time.
0 commit comments