Skip to content

Commit

Permalink
check if FRSM metric used before accessing github_data
Browse files Browse the repository at this point in the history
  • Loading branch information
karacolada committed Feb 28, 2024
1 parent 732e4d0 commit 732b48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuji_server/evaluators/fair_evaluator_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 732b48e

Please sign in to comment.