Replace another fatal error with a clearer message
This commit is contained in:
parent
3783992de5
commit
792c53b256
1 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue