Skip to content

Commit

Permalink
Simplify exception declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Jul 8, 2020
1 parent 4712d1a commit e1e4eb1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pybecker/becker_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,5 @@ def finalize_code(code):
return b"".join([STX, code.encode(), ETX])


class BeckerConnectionError(Error):
"""Exception raised in case of connection error (serial error).
Attributes:
expression -- input expression in which the error occurred
message -- explanation of the error
"""

def __init__(self, expression, message):
self.expression = expression
self.message = message
class BeckerConnectionError(Exception):
pass

0 comments on commit e1e4eb1

Please sign in to comment.