visual for total spend fixed,
This commit is contained in:
@@ -33,7 +33,13 @@ def load_config():
|
||||
logging.error('config.yaml file not found')
|
||||
sys.exit(ec.MISSING_CONFIG_FILE)
|
||||
except yaml.YAMLError as e:
|
||||
logging.error(f'Error loading config.yaml: {e}')
|
||||
# Attempt to print a more informative error message
|
||||
try:
|
||||
parsed_yaml = yaml.safe_load_all(file)
|
||||
for key, value in parsed_yaml:
|
||||
print(f"Error parsing key '{key}': {value}")
|
||||
except Exception as e:
|
||||
logging.error(f'Error loading config.yaml: {e}')
|
||||
sys.exit(ec.CORRUPTED_CONFIG_FILE)
|
||||
except Exception as e:
|
||||
logging.error(f'some other problem {e}')
|
||||
|
||||
Reference in New Issue
Block a user