Skip to content

Commit abdd9cf

Browse files
authored
Include missing exceptions in example
1 parent ea40522 commit abdd9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/irremote_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
print("Decoded:", code)
2020
except adafruit_irremote.IRNECRepeatException: # unusual short code!
2121
print("NEC repeat!")
22-
except adafruit_irremote.IRDecodeException as e: # failed to decode
22+
except (adafruit_irremote.IRDecodeException, adafruit_irremote.FailedToDecode) as e: # failed to decode
2323
print("Failed to decode: ", e.args)
2424

2525
print("----------------------------")

0 commit comments

Comments
 (0)