10 lines
250 B
Python
10 lines
250 B
Python
import json
|
|
|
|
|
|
def load_config(config_path, logger=None):
|
|
try:
|
|
with open(config_path, "rt") as config_file:
|
|
return json.load(config_file)
|
|
except OSError as exc:
|
|
logger.critical(f"Could not load config file: {exc}")
|