feat: client color saving

This commit is contained in:
Swann Martinez
2019-07-01 18:14:48 +02:00
parent fa18061687
commit dee34e6e29
2 changed files with 13 additions and 7 deletions

View File

@ -16,11 +16,13 @@ SUBPROCESS_DIR = None
def load_config():
logger.info("loading config")
with open(CONFIG, 'r') as config_file:
return yaml.safe_load(config_file)
try:
with open(CONFIG, 'r') as config_file:
return yaml.safe_load(config_file)
except FileNotFoundError:
logger.info("no config")
return None
return {}
def save_config(config):
logger.info("saving config")