From 7f6bc44c7253e1cb36fbd80ad3ed59c12a72fd73 Mon Sep 17 00:00:00 2001 From: Ian DesJardins Date: Tue, 30 Jul 2024 10:58:15 -0400 Subject: [PATCH] Catch Exception instead of nothing at all MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MichaƂ Krassowski <5832902+krassowski@users.noreply.github.com> --- jupyter_resource_usage/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_resource_usage/api.py b/jupyter_resource_usage/api.py index 943bf80..22e3ae6 100644 --- a/jupyter_resource_usage/api.py +++ b/jupyter_resource_usage/api.py @@ -79,7 +79,7 @@ async def get(self): if config.track_disk_usage: try: disk_info = psutil.disk_usage(config.disk_path) - except: + except Exception: pass else: metrics.update(disk_used=disk_info.used, disk_total=disk_info.total)