Duke-GCB / DukeDSClient

Command line program to allow uploading, downloading, and managing projects in the duke-data-service.
MIT License
5 stars 6 forks source link

raise better exception for an empty config file #317

Closed johnbradley closed 3 years ago

johnbradley commented 3 years ago

The yaml.safe_load method returns None for an empty YAML file(which makes sense). This caused problems loading config. Changes here check for None and show a better error message.

Fixes #316