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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user