Skip to content

Commit e874652

Browse files
author
EYDEV\A2236985-3
committed
added 3 lines to DjangoDash to implement this feature
1 parent 00b60d8 commit e874652

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_plotly_dash/dash_wrapper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class DjangoDash:
7676
def __init__(self, name=None, serve_locally=False,
7777
expanded_callbacks=False,
7878
add_bootstrap_links=False,
79+
suppress_callback_exceptions=False,
7980
**kwargs): # pylint: disable=unused-argument
8081
if name is None:
8182
global uid_counter # pylint: disable=global-statement
@@ -94,6 +95,7 @@ def __init__(self, name=None, serve_locally=False,
9495

9596
self._expanded_callbacks = expanded_callbacks
9697
self._serve_locally = serve_locally
98+
self._suppress_callback_exceptions = suppress_callback_exceptions
9799

98100
if add_bootstrap_links:
99101
from bootstrap4.bootstrap import css_url
@@ -147,6 +149,7 @@ def form_dash_instance(self, replacements=None, ndid=None, base_pathname=None):
147149
serve_locally=self._serve_locally)
148150

149151
rd.layout = self.layout
152+
rd.config['suppress_callback_exceptions'] = self._suppress_callback_exceptions
150153

151154
for cb, func in self._callback_sets:
152155
rd.callback(**cb)(func)

0 commit comments

Comments
 (0)