Skip to content

Commit 2b435fe

Browse files
authored
Merge pull request #3025 from plotly/fix-no-output-error
Fix no output callback and error handler.
2 parents a26eea5 + 3ee0dd8 commit 2b435fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
99
- [#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)
1010
- [#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)
1111
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.
12+
- [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error.
1213

1314
## [2.18.1] - 2024-09-12
1415

Diff for: dash/_callback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def add_context(*args, **kwargs):
508508
output_value = error_handler(err)
509509

510510
# If the error returns nothing, automatically puts NoUpdate for response.
511-
if output_value is None:
511+
if output_value is None and has_output:
512512
output_value = NoUpdate()
513513
else:
514514
raise err

0 commit comments

Comments
 (0)