Closed karacolada closed 5 months ago
Observed during #30, the server throws an error when no license files were found as the object is empty/not defined.
No error should be thrown, instead FRSM-15 should simply recognise that no license file was found.
Internal server error as license_file_paths is accessed without having been defined before.
license_file_paths
Add if not None to the if-statements.
if not None
Before fixing #30, https://github.com/ebreitmo/bolt will trigger this isssue.
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.