aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kamps <[email protected]>2016-10-03 13:27:02 +0200
committerGitHub <[email protected]>2016-10-03 13:27:02 +0200
commit25c262461e9913a833c87e71401fa994b73c5dfb (patch)
tree9d7987d020bb32a4581ec4c36280b4ca7eb850d8
parentAdd support for new Manage Webhooks permission. (diff)
downloaddiscord.py-25c262461e9913a833c87e71401fa994b73c5dfb.tar.xz
discord.py-25c262461e9913a833c87e71401fa994b73c5dfb.zip
[commands] Fix mistake in Paginator error message.
-rw-r--r--discord/ext/commands/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py
index 5faa65ab..7440e1de 100644
--- a/discord/ext/commands/formatter.py
+++ b/discord/ext/commands/formatter.py
@@ -90,7 +90,7 @@ class Paginator:
The line was too big for the current :attr:`max_size`.
"""
if len(line) > self.max_size - len(self.prefix) - 2:
- raise RuntimeError('Line exceeds maximum page size %s' % (self.max_size))
+ raise RuntimeError('Line exceeds maximum page size %s' % (self.max_size - len(self.prefix) - 2))
if self._count + len(line) + 1 > self.max_size:
self.close_page()