Skip to content

Commit

Permalink
Fix missing whitespace in try-except caluses (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben9923 authored Jul 31, 2022
1 parent 57ed46d commit df3fba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psutil/_psbsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ def cpu_freq():
if available_freq:
try:
min_freq = int(available_freq.split(" ")[-1].split("/")[0])
except(IndexError, ValueError):
except (IndexError, ValueError):
min_freq = None
try:
max_freq = int(available_freq.split(" ")[0].split("/")[0])
except(IndexError, ValueError):
except (IndexError, ValueError):
max_freq = None
ret.append(_common.scpufreq(current, min_freq, max_freq))
return ret
Expand Down

0 comments on commit df3fba5

Please sign in to comment.