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):
|
||||
pass
|
||||
|
||||
class NotInstalledError(Exception):
|
||||
class NoProfilesError(Exception):
|
||||
pass
|
||||
|
||||
class NoProfilesError(Exception):
|
||||
class Not4KAlignedError(Exception):
|
||||
pass
|
||||
|
||||
class NotInstalledError(Exception):
|
||||
pass
|
||||
|
||||
class OSInstalledLegacyError(Exception):
|
||||
|
|
@ -88,6 +91,12 @@ class SecureBootNotAvailError(Exception):
|
|||
class SecureBootUnknownError(Exception):
|
||||
pass
|
||||
|
||||
class WindowsOutdatedError(Exception):
|
||||
pass
|
||||
|
||||
class WindowsUnsupportedError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
# General functions
|
||||
def abort(show_prompt=True):
|
||||
|
|
|
|||
|
|
@ -6,14 +6,6 @@ from functions.common 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):
|
||||
"""Check that all partitions are 4K aligned."""
|
||||
aligned = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue