From 732b48e80007c99ebc43e1767cf7900584823062 Mon Sep 17 00:00:00 2001 From: Kara Moraw Date: Wed, 28 Feb 2024 09:53:29 +0000 Subject: [PATCH] check if FRSM metric used before accessing github_data --- fuji_server/evaluators/fair_evaluator_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuji_server/evaluators/fair_evaluator_license.py b/fuji_server/evaluators/fair_evaluator_license.py index f14f5f3d..f4b63b5d 100644 --- a/fuji_server/evaluators/fair_evaluator_license.py +++ b/fuji_server/evaluators/fair_evaluator_license.py @@ -49,7 +49,7 @@ def __init__(self, fuji_instance): def setLicenseDataAndOutput(self): self.license_info = [] specified_licenses = self.fuji.metadata_merged.get("license") - if specified_licenses is None: # try GitHub data + if specified_licenses is None and self.metric_identifier.startswith("FRSM"): # try GitHub data specified_licenses = self.fuji.github_data.get("license") if isinstance(specified_licenses, str): # licenses maybe string or list depending on metadata schemas specified_licenses = [specified_licenses]