File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,8 @@ def apply_scenario_constraints(self) -> None:
227
227
228
228
# Apply each constraint directly as a query string
229
229
for constraint in self .scenario .constraints :
230
- try :
231
- self .data = self .data .query (str (constraint ))
232
- logger .debug (f"Applied constraint: { constraint } " )
233
- except Exception as e :
234
- logger .warning (f"Failed to apply constraint '{ constraint } ': { str (e )} " )
230
+ self .data = self .data .query (str (constraint ))
231
+ logger .debug (f"Applied constraint: { constraint } " )
235
232
236
233
filtered_rows = len (self .data )
237
234
if filtered_rows < original_rows :
@@ -385,6 +382,7 @@ def run_tests(self, silent=False) -> List[CausalTestResult]:
385
382
result = test_case .execute_test ()
386
383
results .append (result )
387
384
logger .info (f"Test completed: { test_case } " )
385
+ # pylint: disable=broad-exception-caught
388
386
except Exception as e :
389
387
if not silent :
390
388
logger .error (f"Error running test { test_case } : { str (e )} " )
You can’t perform that action at this time.
0 commit comments