diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-11-29 18:27:48 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-11-29 18:49:12 -0500 |
commit | f547cab7109635e663585a0704eb3b06f194a2d0 (patch) | |
tree | 851694e00ac9237d0f74069cef8024ab7697b7ef /klippy/msgproto.py | |
parent | 7835f50722ac511b5696de2df4e6e1ab2ef26731 (diff) | |
download | kutter-f547cab7109635e663585a0704eb3b06f194a2d0.tar.gz kutter-f547cab7109635e663585a0704eb3b06f194a2d0.tar.xz kutter-f547cab7109635e663585a0704eb3b06f194a2d0.zip |
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>
Diffstat (limited to 'klippy/msgproto.py')
-rw-r--r-- | klippy/msgproto.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py index 73c8d2d5..76dc0544 100644 --- a/klippy/msgproto.py +++ b/klippy/msgproto.py @@ -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 |