aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kyle Stanley <[email protected]>2020-06-28 01:11:10 -0400
committerGravatar GitHub <[email protected]>2020-06-28 01:11:10 -0400
commitb3ba0b59940559881bc39ef39818a934753ff1c3 (patch)
treed56c6378a12c4f7da2489cf7ef6acb4541d17aae
parentLower LinePaginator max_size arg in CustomHelpCommand.send_bot_help (diff)
In LinePaginator.__init__(), fix scale_to_size ValueError message
Co-authored-by: Mark <[email protected]>
-rw-r--r--bot/pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/pagination.py b/bot/pagination.py
index b047cf5fb..94c2d7c0c 100644
--- a/bot/pagination.py
+++ b/bot/pagination.py
@@ -70,7 +70,7 @@ class LinePaginator(Paginator):
raise ValueError(f"scale_to_size must be >= max_size. ({scale_to_size} < {max_size})")
if scale_to_size > 2000:
- raise ValueError(f"max_size must be <= 2,000 characters. ({scale_to_size} > 2000)")
+ raise ValueError(f"scale_to_size must be <= 2,000 characters. ({scale_to_size} > 2000)")
self.scale_to_size = scale_to_size - len(suffix)
self.max_lines = max_lines