1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 18:59:09 +00:00

[commands] Fix mistake in Paginator error message.

This commit is contained in:
Max Kamps 2016-10-03 13:27:02 +02:00 committed by GitHub
parent b39de025c5
commit 25c262461e

@ -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()