mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Code optimisations and refactoring via Sourcery
This commit is contained in:
1 parent
e090ee4308
commit
63ec23bac2
18 files changed
+47
-90
No files matched your search
+1
-1
@@ -104,7 +104,7 @@ class HTTPException(DiscordException):
|
||||
|
||||
fmt = '{0.status} {0.reason} (error code: {1})'
|
||||
if len(self.text):
|
||||
fmt = fmt + ': {2}'
|
||||
fmt += ': {2}'
|
||||
|
||||
super().__init__(fmt.format(self.response, self.code, self.text))
|
||||
|
||||
|
||||
Reference in new issue
Block a user