Avoid crash due to missing error classes

This commit is contained in:
2Shirt 2019-05-10 16:39:28 -06:00
parent 6a1315a9f2
commit 06018125b2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 11 additions and 10 deletions

View file

@ -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):

View file

@ -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