Fixed inconsistent indent length
This commit is contained in:
parent
85e7813539
commit
087500c9b7
1 changed files with 6 additions and 6 deletions
|
|
@ -58,12 +58,12 @@ def check_secure_boot_status():
|
||||||
if boot_mode != 'UEFI':
|
if boot_mode != 'UEFI':
|
||||||
raise OSInstalledLegacyError
|
raise OSInstalledLegacyError
|
||||||
else:
|
else:
|
||||||
# Check error message
|
# Check error message
|
||||||
err = result.stderr.decode()
|
err = result.stderr.decode()
|
||||||
if 'Cmdlet not supported' in err:
|
if 'Cmdlet not supported' in err:
|
||||||
raise SecureBootNotAvailError
|
raise SecureBootNotAvailError
|
||||||
else:
|
else:
|
||||||
raise GenericError
|
raise GenericError
|
||||||
|
|
||||||
def get_boot_mode():
|
def get_boot_mode():
|
||||||
"""Check if Windows is booted in UEFI or Legacy mode, returns str."""
|
"""Check if Windows is booted in UEFI or Legacy mode, returns str."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue