Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jul 8, 2024
1 parent 293066b commit cc0b767
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/miniconf-mqtt/miniconf/miniconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
class MiniconfException(Exception):
"""Generic exceptions generated by Miniconf."""

def __init__(self, code, message):
self.code = code
self.message = message

def __repr__(self):
code, response = self.args
return f"Code: {code}, Message: {response}"
return f"Code: {self.code}, Message: {self.message}"


class Miniconf:
Expand Down

0 comments on commit cc0b767

Please sign in to comment.