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