]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
Fix bugs in "Invalid state" printing/exceptions.
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index 1ee88d78509bad088f36254e1c4ab5b778beb350..329f2b6a47c4d2701e0da90240c392852c38d6e7 100644 (file)
@@ -83,5 +83,5 @@ class Decoder(srd.Decoder):
                 self.state = 'IGNORE START REPEAT'
                 self.data = []
         else:
                 self.state = 'IGNORE START REPEAT'
                 self.data = []
         else:
-            raise Exception('Invalid state: %d' % self.state)
+            raise Exception('Invalid state: %s' % self.state)