Fix bug: When flag folder empty, it now returns [] (as opposed to None)

This commit is contained in:
2025-02-17 15:42:57 +01:00
parent 0911260f26
commit 0454b54b8c

View File

@ -137,7 +137,7 @@ def load_flags(flagFolderPath, dry_run : bool = False): #filePath, instFolder, d
# If no files found, return None
if not files:
return None
return []
# Sort files by creation time
sortedFiles = sorted(files, key=os.path.getctime)