diff --git a/discord/errors.py b/discord/errors.py index bc2398d5..9b33c260 100644 --- a/discord/errors.py +++ b/discord/errors.py @@ -143,7 +143,7 @@ class HTTPException(DiscordException): self.code = 0 fmt = '{0.status} {0.reason} (error code: {1})' - if len(self.text): + if self.text: fmt += ': {2}' super().__init__(fmt.format(self.response, self.code, self.text))