Skip to content

Commit f15e085

Browse files
authored
Merge pull request #548 from plotly/remove-prevent-update-print
Remove print statement from PreventUpdate handler.
2 parents 534d285 + e1e8302 commit f15e085

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Fixed
33
- Asset blueprint takes routes prefix into it's static path. [#547](https://github.com/plotly/dash/pull/547)
44
- Asset url path no longer strip routes from requests. [#547](https://github.com/plotly/dash/pull/547)
5+
- Remove print statement from PreventUpdate error handler. [#548](https://github.com/plotly/dash/pull/548)
56

67
## Changed
78
- `assets_folder` argument now default to 'assets' [#547](https://github.com/plotly/dash/pull/547)

Diff for: dash/dash.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ def __init__(
169169
Compress(self.server)
170170

171171
@self.server.errorhandler(exceptions.PreventUpdate)
172-
def _handle_error(error):
172+
def _handle_error(_):
173173
"""Handle a halted callback and return an empty 204 response"""
174-
print(error, file=sys.stderr)
175-
return ('', 204)
174+
return '', 204
176175

177176
# static files from the packages
178177
self.css = Css()

0 commit comments

Comments
 (0)