Fix fstring formatting. (#315)

Cette révision appartient à :
xuchen-amd
2025-08-12 11:54:58 -04:00
révisé par GitHub
Parent cb77f5af5c
révision 9a4983feac
+8 -9
Voir le fichier
@@ -57,7 +57,9 @@ class MainView(Horizontal):
super().__init__(id="main-container")
self.start_path = (
# NOTE: is cwd the best choice?
Path.cwd() if DEFAULT_START_PATH is None else Path(DEFAULT_START_PATH)
Path.cwd()
if DEFAULT_START_PATH is None
else Path(DEFAULT_START_PATH)
)
self.logger = Logger()
@@ -169,15 +171,12 @@ class MainView(Horizontal):
sys_info_df = file_io.load_sys_info(sysinfo_path)
self.logger.info(f"Step 3: sys_info_df type = {type(sys_info_df)}")
self.logger.info(
f"Step 3: sys_info_df shape = {
(
sys_info_df.shape
if hasattr(sys_info_df, 'shape')
else 'No shape attribute'
)
}"
shape_info = (
sys_info_df.shape
if hasattr(sys_info_df, "shape")
else "No shape attribute"
)
self.logger.info(f"Step 3: sys_info_df shape = {shape_info}")
except Exception as e:
self.logger.error(f"Step 3 failed - Error loading sys_info: {str(e)}")