Skip to content

Commit

Permalink
rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jul 30, 2021
1 parent 50d2501 commit 5f756a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/visionEnhancementProviders/screenCurtain.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def isScreenFullyBlack() -> bool:
return numberOfColours == 1 and firstPixelIsBlack


class ScreenCurtainFail(RuntimeError):
class ScreenCurtainInitializationError(RuntimeError):
pass


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5f756a4

Please sign in to comment.