Add optimizations in errors
This commit is contained in:
@@ -143,7 +143,7 @@ class HTTPException(DiscordException):
|
|||||||
self.code = 0
|
self.code = 0
|
||||||
|
|
||||||
fmt = '{0.status} {0.reason} (error code: {1})'
|
fmt = '{0.status} {0.reason} (error code: {1})'
|
||||||
if len(self.text):
|
if self.text:
|
||||||
fmt += ': {2}'
|
fmt += ': {2}'
|
||||||
|
|
||||||
super().__init__(fmt.format(self.response, self.code, self.text))
|
super().__init__(fmt.format(self.response, self.code, self.text))
|
||||||
|
|||||||
Reference in New Issue
Block a user