diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-08 21:21:03 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-09 17:50:05 +0200 |
commit | e28f7aee3b96afeb543e0c3c29e3950ddd61a490 (patch) | |
tree | 75b295dd005c22f21dded6815bf9e31a514277a1 /decoders/ir_rc5/pd.py | |
parent | 0e501c70cf26f208d7e523b7fe737d0e8d565109 (diff) | |
download | libsigrokdecode-e28f7aee3b96afeb543e0c3c29e3950ddd61a490.tar.gz libsigrokdecode-e28f7aee3b96afeb543e0c3c29e3950ddd61a490.zip |
All PDs: Drop unneeded exceptions.
In all current PDs it is not necessary to raise an exception upon
invalid states (of the PD's state machine), since we can guarantee that
no such invalid state can ever be reached in these PDs.
Diffstat (limited to 'decoders/ir_rc5/pd.py')
-rw-r--r-- | decoders/ir_rc5/pd.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index 38b4793..885b29d 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -168,8 +168,6 @@ class Decoder(srd.Decoder): if edge == 's': self.state = 'MID0' bit = 0 if edge == 's' else None - else: - raise Exception('Invalid state: %s' % self.state) self.edges.append(self.samplenum) if bit != None: |