Skip to content

Commit

Permalink
Merge pull request storaged-project#1241 from koitococo/3.10-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny authored May 29, 2024
2 parents f42809a + 02686e7 commit 0c7d00e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions blivet/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ def is_t2mac():
elif not os.path.isfile(DMI_PRODUCT_NAME):
t2_mac = False
else:
buf = read_file(DMI_PRODUCT_NAME).strip()
t2_mac = (buf in APPLE_T2_PRODUCT_NAMES)
try:
buf = read_file(DMI_PRODUCT_NAME).strip()
t2_mac = (buf in APPLE_T2_PRODUCT_NAMES)
except UnicodeDecodeError:
t2_mac = False
return t2_mac


Expand Down

0 comments on commit 0c7d00e

Please sign in to comment.