Skip to content

Commit

Permalink
pylint adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Niccolo-Ajroldi committed Feb 20, 2024
1 parent 4a0ac89 commit 6146655
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions exp/slurm/check1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@


def check_disk_io_counters_support():
try:
disk_io = psutil.disk_io_counters()
if disk_io is None:
print("disk_io_counters() is not supported on this machine.")
else:
print("disk_io_counters() is supported on this machine.")
print("Disk I/O stats:", disk_io)
except Exception as e:
print(f"An error occurred: {e}")
try:
disk_io = psutil.disk_io_counters()
if disk_io is None:
print("disk_io_counters() is not supported on this machine.")
else:
print("disk_io_counters() is supported on this machine.")
print("Disk I/O stats:", disk_io)
except psutil.Error as e:
print(f"An error occurred: {e}")

check_disk_io_counters_support()

0 comments on commit 6146655

Please sign in to comment.