Skip to content

Fix: don't swallow ObjectNotFoundError in _recent - #103

Merged
psrok1 merged 1 commit into
masterfrom
fix/dont-swallow-exc-in-recent
Sep 25, 2025
Merged

psrok1 merged 1 commit into
masterfrom
fix/dont-swallow-exc-in-recent

Conversation

@psrok1

@psrok1 psrok1 commented Sep 24, 2025

Copy link
Copy Markdown
Member

If we provide non-existent older_than, we just receive empty iterator instead of an exception. If older_than points at removed object, _recent suddenly stops iterating instead of returning an exception.

Because of that behavior, client can't distinguish between empty result and failed listing attempt.

This PR removes exception swallowing from _recent method.

@psrok1
psrok1 requested a review from msm-cert September 24, 2025 15:00

@nazywam nazywam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 🤔

@psrok1
psrok1 force-pushed the fix/dont-swallow-exc-in-recent branch from 5f62c76 to c28f82c Compare September 25, 2025 15:21
@psrok1
psrok1 merged commit 163bfd0 into master Sep 25, 2025
4 checks passed
@psrok1
psrok1 deleted the fix/dont-swallow-exc-in-recent branch September 25, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants