mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-06-24 21:21:08 +02:00
Fix bug: When flag folder empty, it now returns [] (as opposed to None)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user