Replace another fatal error with a clearer message

This commit is contained in:
benjamin melançon 2024-11-24 12:07:00 -05:00
parent 3783992de5
commit 792c53b256

View file

@ -3,6 +3,7 @@
import configparser
import json
import os
import sys
config = configparser.ConfigParser()
config['pomodoro'] = {}
@ -47,4 +48,7 @@ def harvest_set_projects_clients_map(projects_clients_map = {}):
write()
def harvest_get_projects_clients_map():
if 'projects_clients' in harvest:
return json.loads(harvest['projects_clients'])
else:
sys.exit("No project clients available; run fetch_clients_projects.py")