File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -2075,20 +2075,21 @@ def update(pathname, search):
2075
2075
_validate .validate_registry (_pages .PAGE_REGISTRY )
2076
2076
2077
2077
# Set validation_layout
2078
- self .validation_layout = html .Div (
2079
- [
2080
- page ["layout" ]() if callable (page ["layout" ]) else page ["layout" ]
2081
- for page in _pages .PAGE_REGISTRY .values ()
2082
- ]
2083
- + [
2084
- # pylint: disable=not-callable
2085
- self .layout ()
2086
- if callable (self .layout )
2087
- else self .layout
2088
- ]
2089
- )
2090
- if _ID_CONTENT not in self .validation_layout :
2091
- raise Exception ("`dash.page_container` not found in the layout" )
2078
+ if not self .config .suppress_callback_exceptions :
2079
+ self .validation_layout = html .Div (
2080
+ [
2081
+ page ["layout" ]() if callable (page ["layout" ]) else page ["layout" ]
2082
+ for page in _pages .PAGE_REGISTRY .values ()
2083
+ ]
2084
+ + [
2085
+ # pylint: disable=not-callable
2086
+ self .layout ()
2087
+ if callable (self .layout )
2088
+ else self .layout
2089
+ ]
2090
+ )
2091
+ if _ID_CONTENT not in self .validation_layout :
2092
+ raise Exception ("`dash.page_container` not found in the layout" )
2092
2093
2093
2094
# Update the page title on page navigation
2094
2095
self .clientside_callback (
You can’t perform that action at this time.
0 commit comments