Skip to content

Commit

Permalink
Fix a bug where the text wasn't being shown in the message of Unexpec…
Browse files Browse the repository at this point in the history
…tedError
  • Loading branch information
SharpBit committed Oct 6, 2024
1 parent de14d5f commit 5e1ba0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brawlstats/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class UnexpectedError(RequestError):
def __init__(self, url, code, text):
self.code = code
self.url = url
self.message = 'An unexpected error has occured.\n{text}'
self.message = 'An unexpected error has occured.\n{}'.format(text)
super().__init__(self.code, self.message)


Expand Down

0 comments on commit 5e1ba0a

Please sign in to comment.