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.")