From e0b161a87a89143692eca3b3f42e3ac901ca61d2 Mon Sep 17 00:00:00 2001 From: philippe Date: Mon, 7 Oct 2024 15:37:09 -0400 Subject: [PATCH 1/2] Fix no output callback and error handler. --- dash/_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/_callback.py b/dash/_callback.py index 383ce6886d..2eeda1c028 100644 --- a/dash/_callback.py +++ b/dash/_callback.py @@ -508,7 +508,7 @@ def add_context(*args, **kwargs): output_value = error_handler(err) # If the error returns nothing, automatically puts NoUpdate for response. - if output_value is None: + if output_value is None and has_output: output_value = NoUpdate() else: raise err From 3ee0dd88b4069668d7c0c1353ba86d803d3cbc84 Mon Sep 17 00:00:00 2001 From: philippe Date: Mon, 7 Oct 2024 15:47:50 -0400 Subject: [PATCH 2/2] Update changelog. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b52aa74aa2..54af4cbea1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - [#2994](https://github.com/plotly/dash/pull/2994) Keep generated doc-string order for shape or exact props. Fixes [#2990](https://github.com/plotly/dash/issues/2990) - [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010) - [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages. +- [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error. ## [2.18.1] - 2024-09-12