Skip to content

Commit 7f35ecd

Browse files
committed
adjusting issue with try
1 parent e88bc3c commit 7f35ecd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dash/_callback.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -684,13 +684,7 @@ def add_context(*args, **kwargs):
684684
if skip:
685685
return output_value
686686
else:
687-
try:
688-
output_value = _invoke_callback(func, *func_args, **func_kwargs) # type: ignore[reportArgumentType]
689-
except PreventUpdate as err:
690-
raise err
691-
except Exception as err: # pylint: disable=broad-exception-caught
692-
if error_handler:
693-
output_value = error_handler(err)
687+
output_value = _invoke_callback(func, *func_args, **func_kwargs) # type: ignore[reportArgumentType]
694688
except PreventUpdate:
695689
raise
696690
except Exception as err: # pylint: disable=broad-exception-caught

0 commit comments

Comments
 (0)