From 5f756a4b3fc4ae2d42bd24551563f14cd0a9d073 Mon Sep 17 00:00:00 2001 From: buddsean Date: Fri, 30 Jul 2021 15:57:57 +1000 Subject: [PATCH] rename error --- source/visionEnhancementProviders/screenCurtain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)