From 9b7d01c4029c8d92d6454d42dfeb827d8ae5f0a5 Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 18 Sep 2024 11:45:33 -0400 Subject: [PATCH] changed an error message to make it slightly more clear --- pyflowery/pyflowery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyflowery/pyflowery.py b/pyflowery/pyflowery.py index 2f29b01..a773fd6 100644 --- a/pyflowery/pyflowery.py +++ b/pyflowery/pyflowery.py @@ -113,7 +113,7 @@ class FloweryAPI: """ if len(text) > 2048: if not self.config.allow_truncation: - raise ValueError('Text must be less than 2048 characters') + raise ValueError('Text must be less than or equal to 2048 characters') self.config.logger.warning('Text is too long, will be truncated to 2048 characters by the API') params = { 'text': text,