diff --git a/source/visionEnhancementProviders/screenCurtain.py b/source/visionEnhancementProviders/screenCurtain.py index b0cde5f2581..6942f26f3b3 100644 --- a/source/visionEnhancementProviders/screenCurtain.py +++ b/source/visionEnhancementProviders/screenCurtain.py @@ -333,7 +333,7 @@ def isScreenFullyBlack() -> bool: return numberOfColours == 1 and firstPixelIsBlack -class ScreenCurtainFail(RuntimeError): +class ScreenCurtainInitializationError(RuntimeError): pass @@ -370,7 +370,7 @@ def __init__(self): Magnification.MagSetFullscreenColorEffect(TRANSFORM_BLACK) Magnification.MagShowSystemCursor(False) if not isScreenFullyBlack(): - raise ScreenCurtainFail("Screen curtain not activated properly") + raise ScreenCurtainInitializationError("Screen curtain not activated properly") except Exception as e: try: Magnification.MagShowSystemCursor(True)