datacube-core icon indicating copy to clipboard operation
datacube-core copied to clipboard

Clean up usage of DeprecationWarning/FutureWarning

Open omad opened this issue 7 months ago • 0 comments

The Python warnings documentation says that we should be using FutureWarning for application user facing changes (Like configuration files). And DeprecationWarning for code/API changes.

There are several cases where we dump raw python warnings onto a CLI user's screen, which is a really ugly UX. The CLI tools should probably be handling warnings and errors in a friendlier way.

Originally posted by @omad in https://github.com/opendatacube/datacube-core/pull/1733#pullrequestreview-2724050429

omad avatar Mar 28 '25 01:03 omad