Skip to content

Commit f2df2d1

Browse files
committed
pylint
1 parent 06e199d commit f2df2d1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

causal_testing/main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,8 @@ def apply_scenario_constraints(self) -> None:
227227

228228
# Apply each constraint directly as a query string
229229
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}")
235232

236233
filtered_rows = len(self.data)
237234
if filtered_rows < original_rows:
@@ -385,6 +382,7 @@ def run_tests(self, silent=False) -> List[CausalTestResult]:
385382
result = test_case.execute_test()
386383
results.append(result)
387384
logger.info(f"Test completed: {test_case}")
385+
# pylint: disable=broad-exception-caught
388386
except Exception as e:
389387
if not silent:
390388
logger.error(f"Error running test {test_case}: {str(e)}")

0 commit comments

Comments
 (0)