You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dash==3.1.0, multi-page app fails when suppress_callback_exceptions=True. This issue does not occur in dash==3.0.4 or when the flag is unset (because it defaults to False).
File "/lib/python3.12/site-packages/dash/dash.py", line 2497, in router
if not isinstance(layout, list):
^^^^^^
UnboundLocalError: cannot access local variable 'layout' where it is not associated with a value
Screenshots
Screen.Recording.2025-06-27.at.13.04.23.mov
Other
It looks like the bug comes from this PR and the following change (can't send the direct link to the code section as the PR introduced many changes):
Describe your context
Describe the bug
In
dash==3.1.0, multi-page app fails whensuppress_callback_exceptions=True. This issue does not occur indash==3.0.4or when the flag is unset (because it defaults toFalse).Here's the minimal reproducible example:
Error message:
Screenshots
Screen.Recording.2025-06-27.at.13.04.23.mov
Other
It looks like the bug comes from this PR and the following change (can't send the direct link to the code section as the PR introduced many changes):