Add optimizations in errors
This commit is contained in:
1 parent
10d8a03d71
commit
ec5d350fbb
1 file changed
+1
-1
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user