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/pan1321/pd.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'decoders/pan1321') diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index d173e1c..7edd1c8 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -154,8 +154,6 @@ class Decoder(srd.Decoder): self.handle_device_reply(rxtx, self.cmd[rxtx][:-2]) elif rxtx == TX: self.handle_host_command(rxtx, self.cmd[rxtx][:-2]) - else: - raise Exception('Invalid rxtx value: %d' % rxtx) self.cmd[rxtx] = '' -- cgit v1.2.3-70-g09d2