Skip to content

Commit e1e4eb1

Browse files
author
Nicolas
committed
Simplify exception declaration
1 parent 4712d1a commit e1e4eb1

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pybecker/becker_helper.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,5 @@ def finalize_code(code):
4646
return b"".join([STX, code.encode(), ETX])
4747

4848

49-
class BeckerConnectionError(Error):
50-
"""Exception raised in case of connection error (serial error).
51-
52-
Attributes:
53-
expression -- input expression in which the error occurred
54-
message -- explanation of the error
55-
"""
56-
57-
def __init__(self, expression, message):
58-
self.expression = expression
59-
self.message = message
49+
class BeckerConnectionError(Exception):
50+
pass

0 commit comments

Comments
 (0)