diff --git a/CHANGELOG.md b/CHANGELOG.md index 262ab29931..79ffeb19d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Fixed - Asset blueprint takes routes prefix into it's static path. [#547](https://github.com/plotly/dash/pull/547) - Asset url path no longer strip routes from requests. [#547](https://github.com/plotly/dash/pull/547) +- Remove print statement from PreventUpdate error handler. [#548](https://github.com/plotly/dash/pull/548) ## Changed - `assets_folder` argument now default to 'assets' [#547](https://github.com/plotly/dash/pull/547) diff --git a/dash/dash.py b/dash/dash.py index 5eb07ae197..e8859e93a5 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -169,10 +169,9 @@ def __init__( Compress(self.server) @self.server.errorhandler(exceptions.PreventUpdate) - def _handle_error(error): + def _handle_error(_): """Handle a halted callback and return an empty 204 response""" - print(error, file=sys.stderr) - return ('', 204) + return '', 204 # static files from the packages self.css = Css()