Avoid crash due to missing error classes
This commit is contained in:
parent
6a1315a9f2
commit
06018125b2
2 changed files with 11 additions and 10 deletions
|
|
@ -64,10 +64,13 @@ class GenericRepair(Exception):
|
||||||
class MultipleInstallationsError(Exception):
|
class MultipleInstallationsError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NotInstalledError(Exception):
|
class NoProfilesError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NoProfilesError(Exception):
|
class Not4KAlignedError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class NotInstalledError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class OSInstalledLegacyError(Exception):
|
class OSInstalledLegacyError(Exception):
|
||||||
|
|
@ -88,6 +91,12 @@ class SecureBootNotAvailError(Exception):
|
||||||
class SecureBootUnknownError(Exception):
|
class SecureBootUnknownError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class WindowsOutdatedError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class WindowsUnsupportedError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
# General functions
|
# General functions
|
||||||
def abort(show_prompt=True):
|
def abort(show_prompt=True):
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,6 @@ from functions.common import *
|
||||||
from settings.sw_diags import *
|
from settings.sw_diags import *
|
||||||
|
|
||||||
|
|
||||||
class Not4KAlignedError(Exception):
|
|
||||||
pass
|
|
||||||
class WindowsOutdatedError(Exception):
|
|
||||||
pass
|
|
||||||
class WindowsUnsupportedError(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def check_4k_alignment(show_alert=False):
|
def check_4k_alignment(show_alert=False):
|
||||||
"""Check that all partitions are 4K aligned."""
|
"""Check that all partitions are 4K aligned."""
|
||||||
aligned = True
|
aligned = True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue