summaryrefslogtreecommitdiff
path: root/decoders/maxim_ds28ea00
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-07-08 21:21:03 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-07-09 17:50:05 +0200
commite28f7aee3b96afeb543e0c3c29e3950ddd61a490 (patch)
tree75b295dd005c22f21dded6815bf9e31a514277a1 /decoders/maxim_ds28ea00
parent0e501c70cf26f208d7e523b7fe737d0e8d565109 (diff)
downloadlibsigrokdecode-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/maxim_ds28ea00')
-rw-r--r--decoders/maxim_ds28ea00/pd.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py
index 4693cd9..1e2c36a 100644
--- a/decoders/maxim_ds28ea00/pd.py
+++ b/decoders/maxim_ds28ea00/pd.py
@@ -88,6 +88,4 @@ class Decoder(srd.Decoder):
self.putx([0, ['Temperature conversion status: 0x%02x' % val]])
elif self.state in [s.upper() for s in command.values()]:
self.putx([0, ['TODO \'%s\': 0x%02x' % (self.state, val)]])
- else:
- raise Exception('Invalid state: %s' % self.state)