Skip to content

Commit

Permalink
[melobot] Add pretty exception str for BotException class
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Nov 26, 2024
1 parent 8069bbd commit fb68a9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/melobot/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class BotException(Exception):
def __init__(self, obj: object = ""):
super().__init__(self, obj)
self.err = str(obj)
self.pretty_err = f"[{self.__class__.__qualname__}] {self.err}"

def __str__(self) -> str:
return self.err
Expand Down

0 comments on commit fb68a9a

Please sign in to comment.