diff --git a/rpe/engines/opa.py b/rpe/engines/opa.py index 714ffa9..4f8894a 100644 --- a/rpe/engines/opa.py +++ b/rpe/engines/opa.py @@ -51,18 +51,13 @@ def _opa_request(self, path, method="GET", data=None): # Perform an evaluation on a given resource def evaluate(self, resource): - try: - _input = { - "input": resource.get(), - } - evals = self._opa_request("rpe/evaluate_v2", method="POST", data=_input) - return [Evaluation(engine=self, resource=resource, **ev) for ev in evals] - except Exception as e: - print( - f"Exception during OPA eval. Resource: {str(resource)}. Exception Message: {str(e)}" - ) + _input = { + "input": resource.get(), + } + + evals = self._opa_request("rpe/evaluate_v2", method="POST", data=_input) - return [] + return [Evaluation(engine=self, resource=resource, **ev) for ev in evals] def policies(self): """