Skip to content

Commit

Permalink
Merge pull request #3025 from plotly/fix-no-output-error
Browse files Browse the repository at this point in the history
Fix no output callback and error handler.
  • Loading branch information
T4rk1n authored Oct 8, 2024
2 parents a26eea5 + 3ee0dd8 commit 2b435fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion dash/_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b435fe

Please sign in to comment.