diff --git a/examples/irremote_simpletest.py b/examples/irremote_simpletest.py index bb06915..91d2648 100644 --- a/examples/irremote_simpletest.py +++ b/examples/irremote_simpletest.py @@ -19,7 +19,10 @@ print("Decoded:", code) except adafruit_irremote.IRNECRepeatException: # unusual short code! print("NEC repeat!") - except adafruit_irremote.IRDecodeException as e: # failed to decode + except ( + adafruit_irremote.IRDecodeException, + adafruit_irremote.FailedToDecode, + ) as e: # failed to decode print("Failed to decode: ", e.args) print("----------------------------")