Skip to content

Commit

Permalink
Fix python2 exception handling in ocperf
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Nov 12, 2024
1 parent 5227d83 commit 231553b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def cached_read(fn):
try:
with open(fn) as f:
cached_vals[fn] = f.read()
except OSError:
except (OSError, IOError):
cached_vals[fn] = "?"
return cached_vals[fn]

Expand Down

0 comments on commit 231553b

Please sign in to comment.