From 9d0571ae54d49c31b0bfc0807df8afe60ea86f08 Mon Sep 17 00:00:00 2001 From: Hudson Brendon Date: Tue, 31 Dec 2024 01:26:48 -0300 Subject: [PATCH] fix: change order logic --- pymusixmatch/musixmatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymusixmatch/musixmatch.py b/pymusixmatch/musixmatch.py index e5be6bc..42ac777 100644 --- a/pymusixmatch/musixmatch.py +++ b/pymusixmatch/musixmatch.py @@ -58,7 +58,7 @@ def _set_page_size(self, page_size: int) -> int: Returns: int: The page size. """ - if page_size > 100 or page_size < 1: + if page_size < 1 or page_size > 100: raise ValueError( f"Invalid page size: {page_size}, please use a page size between 1 and 100." )