Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Sep 28, 2023
1 parent d1da92e commit c1cfcf6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ async def search_files_page(
access_right="read",
)
error_message: str = "Not found in storage"
if not stored_files:
raise ValueError(error_message) # noqa: TRY301
if page_params.offset >= len(stored_files):
if page_params.offset > len(stored_files):
raise ValueError(error_message)
stored_files = stored_files[page_params.offset :]
if len(stored_files) > page_params.limit:
Expand Down

0 comments on commit c1cfcf6

Please sign in to comment.