Fix bugs in "Invalid state" printing/exceptions.
[libsigrokdecode.git] / decoders / mxc6225xu / pd.py
index 39564a957f1e4d0ea4557c9316f82060d2eae704..c139918d0654ab6d226ef783328853d648b15f47 100644 (file)
@@ -225,5 +225,5 @@ class Decoder(srd.Decoder):
             else:
                 pass # TODO?
         else:
-            raise Exception('Invalid state: %d' % self.state)
+            raise Exception('Invalid state: %s' % self.state)