OCHA-DAP / hdx-cli-toolkit

A commandline tool for interacting with HDX with a view to doing bulk updates
MIT License
1 stars 0 forks source link

GH28 Fixing the error handling #29

Closed IanHopkinson closed 7 months ago

IanHopkinson commented 7 months ago

Purpose

Version for this PR: 2024.4.5

This is a bug fix release, some other work highlighted that the error handler was not working correctly - as detailed in #28 - essentially a refactoring meant that error messages were only printed if they weren't recognised.

Major file changes

The major changes are in the error handling functions in hdx_utilities.py, a test is added in test_hdx_utilities_integration.py.

Minor file changes

There are a couple of very minor bug fixes, tidying up a file generated during testing and making the count of changed datasets is correct.

Versioning

hdx-cli-toolkit uses the CalVer versioning scheme with format YYYY.MM.Micro i.e. 2022.12.1 which is updated manually in pyproject.toml. The "Micro" component is simply an integer increased by 1 at each version, starting from 0.