@@ -144,7 +144,7 @@ def connect_normal(self):
144
144
self .esp .connect_AP (bytes (ssid , "utf-8" ), bytes (password , "utf-8" ))
145
145
failure_count = 0
146
146
self .pixel_status ((0 , 100 , 0 ))
147
- except ( ValueError , OSError ) as error :
147
+ except OSError as error :
148
148
print ("Failed to connect, retrying\n " , error )
149
149
failure_count += 1
150
150
if failure_count >= self .attempts :
@@ -173,7 +173,7 @@ def create_ap(self):
173
173
self .esp .create_AP (bytes (self .ssid , "utf-8" ), None )
174
174
failure_count = 0
175
175
self .pixel_status ((0 , 100 , 0 ))
176
- except ( ValueError , OSError ) as error :
176
+ except OSError as error :
177
177
print ("Failed to create access point\n " , error )
178
178
failure_count += 1
179
179
if failure_count >= self .attempts :
@@ -203,7 +203,7 @@ def connect_enterprise(self):
203
203
failure_count = 0
204
204
self .pixel_status ((0 , 100 , 0 ))
205
205
sleep (1 )
206
- except ( ValueError , OSError ) as error :
206
+ except OSError as error :
207
207
print ("Failed to connect, retrying\n " , error )
208
208
failure_count += 1
209
209
if failure_count >= self .attempts :
0 commit comments