diff --git a/device/esp_tinyusb/test_apps/teardown_device/pytest_teardown_device.py b/device/esp_tinyusb/test_apps/teardown_device/pytest_teardown_device.py index 975703d8..96a32c11 100644 --- a/device/esp_tinyusb/test_apps/teardown_device/pytest_teardown_device.py +++ b/device/esp_tinyusb/test_apps/teardown_device/pytest_teardown_device.py @@ -72,7 +72,7 @@ def teardown_device(amount): else: print("Error: Response does not match expected value.") - except tusb_cdc.SerialException as e: + except serial.SerialException as e: print(f"Error communicating with the serial port: {e}") break