Commit fa97f6c9 authored by Aleksandra Grabowska's avatar Aleksandra Grabowska
Browse files

Fix validation order: move pair_id check to fetch_data

The validate_pair_id_should_be_given() was called in
validate_inside_context_manager(), but _create_operations() was
executed earlier in _hook_after_fetching_data(). This caused
AssertionError instead of proper validation error.

Fix: Move validation to fetch_data() so it runs before
_hook_after_fetching_data() triggers _create_operations().

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude Opus 4.5 <noreply@anthropic.com>
parent 092e1b10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment