Skip to content

Commit d2ce3ce

Browse files
authored
Merge pull request #61 from tekktrik/main
Fix example file
2 parents ea40522 + 916c977 commit d2ce3ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/irremote_simpletest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
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 (
23+
adafruit_irremote.IRDecodeException,
24+
adafruit_irremote.FailedToDecode,
25+
) as e: # failed to decode
2326
print("Failed to decode: ", e.args)
2427

2528
print("----------------------------")

0 commit comments

Comments
 (0)