From a8993a5a33a8dd4e5911cbcf6c3b4ff237ace800 Mon Sep 17 00:00:00 2001 From: Rizqi Date: Mon, 22 Jun 2026 01:31:04 +0700 Subject: [PATCH] fix: log disk space retrieval errors to stderr instead of failing silently --- gui_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui_app.py b/gui_app.py index 5601b19..2ce902b 100644 --- a/gui_app.py +++ b/gui_app.py @@ -150,7 +150,8 @@ def list_nfs_mounts(): info['used_gb'] = round(used / (1024**3), 1) info['free_gb'] = round(free / (1024**3), 1) info['pct_used'] = int(used / total * 100) if total > 0 else 0 - except Exception: + except Exception as e: + print(f"ERROR: failed to get disk space for {parts[1]}: {e}", file=sys.stderr) info.update({'total_gb': 0, 'used_gb': 0, 'free_gb': 0, 'pct_used': 0}) mounts.append(info) except (FileNotFoundError, PermissionError):