From 3dfa2b9aa0d094d43563da02d099d49f0c0af4c0 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Fri, 4 Jul 2025 13:13:23 +0100 Subject: [PATCH] fix linting --- app/model_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/model_manager.py b/app/model_manager.py index c3ae04286..ab36bca74 100644 --- a/app/model_manager.py +++ b/app/model_manager.py @@ -132,17 +132,17 @@ class ModelFileManager: try: full_path = os.path.join(dirpath, file_name) relative_path = os.path.relpath(full_path, directory) - + # Get file metadata file_info = { "name": relative_path, "pathIndex": pathIndex, "modified": os.path.getmtime(full_path), # Add modification time - "created": os.path.getctime(full_path), # Add creation time + "created": os.path.getctime(full_path), # Add creation time "size": os.path.getsize(full_path) # Add file size } result.append(file_info) - + except Exception as e: logging.warning(f"Warning: Unable to access {file_name}. Error: {e}. Skipping this file.") continue