Skip to content

Commit

Permalink
Merge pull request #31 from hudsonbrendon/fix/set-page-size
Browse files Browse the repository at this point in the history
fix: change order logic
  • Loading branch information
hudsonbrendon authored Dec 31, 2024
2 parents 6f333a6 + 9d0571a commit f1b977a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymusixmatch/musixmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit f1b977a

Please sign in to comment.