Fix bugs in "Invalid state" printing/exceptions.
[libsigrokdecode.git] / decoders / dcf77 / pd.py
index c4132e956689b24c98ff77cac5152f3732ff19ed..9b7c931b2ea41022458ce341fb3e24c819484696 100644 (file)
@@ -282,7 +282,7 @@ class Decoder(srd.Decoder):
                 self.state = 'WAIT FOR RISING EDGE'
 
             else:
-                raise Exception('Invalid state: %d' % self.state)
+                raise Exception('Invalid state: %s' % self.state)
 
             self.oldval = val