mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 18:28:00 -06:00
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:
parent
7835f50722
commit
f547cab710
3 changed files with 8 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue