klippy: No need to define __str__ and __init__ methods on exception classes

The base Exception class already defines these methods.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-11-29 18:27:48 -05:00
parent 7835f50722
commit f547cab710
3 changed files with 8 additions and 17 deletions

View file

@ -24,10 +24,7 @@ MESSAGE_DEST = 0x10
MESSAGE_SYNC = '\x7E'
class error(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return self.msg
pass
def crc16_ccitt(buf):
crc = 0xffff