Skip to content

Commit 5e77d17

Browse files
author
Maxim Vlah
committed
fix: fixed validation of handlers
1 parent ff9323d commit 5e77d17

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

reflex/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,10 @@ def _validate_exception_handlers(self):
16691669
raise ValueError(msg)
16701670

16711671
# Check if the return type is valid for backend exception handler
1672-
if handler_domain == "backend":
1672+
if (
1673+
handler_domain == "backend"
1674+
and self.backend_exception_handler is not None
1675+
):
16731676
sig = inspect.signature(self.backend_exception_handler)
16741677
return_type = (
16751678
eval(sig.return_annotation)

0 commit comments

Comments
 (0)