mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-06-25 05:31:09 +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 no files found, return None
|
||||||
if not files:
|
if not files:
|
||||||
return None
|
return []
|
||||||
|
|
||||||
# Sort files by creation time
|
# Sort files by creation time
|
||||||
sortedFiles = sorted(files, key=os.path.getctime)
|
sortedFiles = sorted(files, key=os.path.getctime)
|
||||||
|
Reference in New Issue
Block a user