Skip to content

Commit

Permalink
Catch Exception instead of nothing at all
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Krassowski <[email protected]>
  • Loading branch information
iandesj and krassowski authored Jul 30, 2024
1 parent f8a69c4 commit 7f6bc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_resource_usage/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f6bc44

Please sign in to comment.