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)