Skip to content

Commit 858a036

Browse files
Zentrikrocallahan
authored andcommitted
Fix typo in zen_workaround.py
1 parent ab68622 commit 858a036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/zen_workaround.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def is_secure_boot_enabled():
5555
def read_msr(cpu):
5656
try:
5757
msr = os.open('/dev/cpu/{}/msr'.format(cpu), os.O_RDONLY)
58-
except PermissionError:
58+
except PermissionError as e:
5959
sys.stderr.write(str(e) + '\n')
6060
print("Permission denied opening MSR for reading.")
6161
print("Try running as root / with sudo.")

0 commit comments

Comments
 (0)