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

GH37 Provide better error handling and information when configuration files are missing #38

Closed IanHopkinson closed 3 months ago

IanHopkinson commented 3 months ago

Purpose

Version for this PR: 2024.8.1

This PR adds error handling and messaging to help users in setting up hdx-toolkit by warning them when configuration and user agent files are missing.

Major file changes

Adds new errors to parse_hdxerror_traceback in hdx_utilities.py and advice/error messages in cli.py.

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.