From 8a6a9a5be024732331c12956a74ef047af3c2475 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 18 Apr 2024 18:50:41 +0100 Subject: [PATCH] Fix typo in zen_workaround.py --- scripts/zen_workaround.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zen_workaround.py b/scripts/zen_workaround.py index ae0cdd33395..54c9660d8d9 100755 --- a/scripts/zen_workaround.py +++ b/scripts/zen_workaround.py @@ -55,7 +55,7 @@ def is_secure_boot_enabled(): def read_msr(cpu): try: msr = os.open('/dev/cpu/{}/msr'.format(cpu), os.O_RDONLY) - except PermissionError: + except PermissionError as e: sys.stderr.write(str(e) + '\n') print("Permission denied opening MSR for reading.") print("Try running as root / with sudo.")