Skip to content

Comments

Log warning instead of raising exception in prod#1355

Merged
richard-to merged 2 commits intomesop-dev:mainfrom
nirben82:fix/1347
Feb 22, 2026
Merged

Log warning instead of raising exception in prod#1355
richard-to merged 2 commits intomesop-dev:mainfrom
nirben82:fix/1347

Conversation

@nirben82
Copy link
Contributor

When handler is missing - log warning in prod and raise exception in debug mode.

Add debug_mode attribute to Context, to avoid circular import from runtime.py

Fixes #1347

@richard-to
Copy link
Collaborator

Thanks again, @nirben82! Looks good.

@richard-to richard-to merged commit f41809c into mesop-dev:main Feb 22, 2026
3 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.

What should be the behavior when a handler is missing?

2 participants