softwaresaved / fuji

FAIRsFAIR Research Data Object Assessment Service
MIT License
0 stars 4 forks source link

[Bug]: license_file_paths accessed when None #31

Closed karacolada closed 5 months ago

karacolada commented 6 months ago

Description

Observed during #30, the server throws an error when no license files were found as the object is empty/not defined.

Expected Behavior

No error should be thrown, instead FRSM-15 should simply recognise that no license file was found.

Actual Behavior

Internal server error as license_file_paths is accessed without having been defined before.

Possible Fix

Add if not None to the if-statements.

Steps to reproduce

Before fixing #30, https://github.com/ebreitmo/bolt will trigger this isssue.