Skip to content

Commit 20b467f

Browse files
author
Maxim Vlah
committed
fix: pyright fixes
1 parent 5e77d17 commit 20b467f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

reflex/state.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,8 +1742,11 @@ async def _as_state_update(
17421742
except Exception as ex:
17431743
state._clean()
17441744

1745+
app = prerequisites.get_and_validate_app().app
17451746
event_specs = (
1746-
prerequisites.get_and_validate_app().app.backend_exception_handler(ex)
1747+
app.backend_exception_handler(ex)
1748+
if app.backend_exception_handler
1749+
else None
17471750
)
17481751

17491752
if event_specs is None:

0 commit comments

Comments
 (0)