From e28f7aee3b96afeb543e0c3c29e3950ddd61a490 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 8 Jul 2014 21:21:03 +0200 Subject: 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. --- decoders/usb_packet/pd.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'decoders/usb_packet') diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index 8f86cc7..4716dd7 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -338,6 +338,4 @@ class Decoder(srd.Decoder): self.bits, self.state = [], 'WAIT FOR SOP' else: pass # TODO: Error - else: - raise Exception('Invalid state: %s' % self.state) -- cgit v1.2.3-70-g09d2