Skip to content

Commit

Permalink
Added OSError to value/bin_value try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanborak committed Oct 28, 2024
1 parent 6d971f4 commit 0748a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/opae.admin/opae/admin/sysfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def value(self):
try:
with self._open('r') as fd:
return fd.read().strip()
except IOError as err:
except (IOError, OSError) as err:
self.log.exception('error opening: %s - %s', self.sysfs_path, err)
raise

Expand All @@ -183,7 +183,7 @@ def bin_value(self):
try:
with self._open('rb') as fd:
return fd.read()
except IOError as err:
except (IOError, OSError) as err:
self.log.exception('error (bin)opening: %s - %s', self.sysfs_path, err)
raise

Expand Down

0 comments on commit 0748a25

Please sign in to comment.