Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/irremote_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("----------------------------")