Skip to content

Commit 71f3856

Browse files
committed
The parts that can raise assertion errors are not recoverable.
1 parent 39c672d commit 71f3856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/gpio/esp32spi_gpio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def esp_init_pin_modes(din, dout):
9494
esp_init_pin_modes(ESP_D_R_PIN, ESP_D_W_PIN)
9595
esp_d_r_val = esp.set_digital_read(ESP_D_R_PIN)
9696
print("--> ESP read:", esp_d_r_val)
97-
except (OSError, AssertionError) as e:
97+
except OSError as e:
9898
print("ESP32 Error", e)
9999
esp_reset_all()
100100

@@ -121,7 +121,7 @@ def esp_init_pin_modes(din, dout):
121121
"v)",
122122
sep="",
123123
)
124-
except (OSError, AssertionError) as e:
124+
except OSError as e:
125125
print("ESP32 Error", e)
126126
esp_reset_all()
127127

0 commit comments

Comments
 (0)