From 49c50857648477769d874d3e73daa5d37e70cdaf Mon Sep 17 00:00:00 2001 From: smypmsa Date: Tue, 5 Aug 2025 14:40:43 +0000 Subject: [PATCH] fix(core): remove silent failures --- src/config_loader.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/config_loader.py b/src/config_loader.py index 7feb1cb..cbd6ac7 100644 --- a/src/config_loader.py +++ b/src/config_loader.py @@ -132,8 +132,9 @@ def validate_config(config: dict) -> None: value = get_nested_value(config, path) if value not in valid_values: raise ValueError(f"{path} must be one of {valid_values}") - except ValueError: - continue + except ValueError as e: + if "Missing required config key" not in str(e): + raise # Cannot enable both dynamic and fixed priority fees try: @@ -141,8 +142,9 @@ def validate_config(config: dict) -> None: fixed = get_nested_value(config, "priority_fees.enable_fixed") if dynamic and fixed: raise ValueError("Cannot enable both dynamic and fixed priority fees simultaneously") - except ValueError: - pass + except ValueError as e: + if "Missing required config key" not in str(e): + raise # Platform-specific validation platform_str = config.get("platform", "pump_fun") @@ -176,8 +178,9 @@ def validate_platform_config(config: dict, platform: Platform) -> None: f"Listener type '{listener_type}' is not compatible with platform '{platform.value}'. " f"Compatible listeners: {compatible_listeners}" ) - except ValueError: - pass + except ValueError as e: + if "Missing required config key" not in str(e): + raise # Platform-specific configuration validation if platform == Platform.PUMP_FUN: