Skip to content

fix product validation - #462

Merged
blaylockbk merged 2 commits into
blaylockbk:mainfrom
BANANAPEEL202:fix-product-validation
Aug 9, 2025
Merged

fix product validation#462
blaylockbk merged 2 commits into
blaylockbk:mainfrom
BANANAPEEL202:fix-product-validation

Conversation

@BANANAPEEL202

Copy link
Copy Markdown
Contributor

currently, inputting an invalid product leads to a generic keyerror

Screenshot 2025-08-02 at 2 51 39 PM

by calling _validate() earlier, we can throw a more useful assertion error:

Screenshot 2025-08-02 at 2 51 16 PM

@BANANAPEEL202
BANANAPEEL202 marked this pull request as draft August 3, 2025 00:40
@BANANAPEEL202
BANANAPEEL202 marked this pull request as ready for review August 3, 2025 01:30
@blaylockbk

Copy link
Copy Markdown
Owner

Thanks! I have vauge memories of placing the _validate statement in its particular place. But I don't see that this change failed any tests, so it must be fine.

@blaylockbk
blaylockbk merged commit 6c2321b into blaylockbk:main Aug 9, 2025
9 checks passed
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