mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #2715 from Textualize/fix-modes
Remove duplicated modes.
This commit is contained in:
@@ -177,22 +177,6 @@ class ActiveModeError(ModeError):
|
|||||||
"""Raised when attempting to remove the currently active mode."""
|
"""Raised when attempting to remove the currently active mode."""
|
||||||
|
|
||||||
|
|
||||||
class ModeError(Exception):
|
|
||||||
"""Base class for exceptions related to modes."""
|
|
||||||
|
|
||||||
|
|
||||||
class InvalidModeError(ModeError):
|
|
||||||
"""Raised if there is an issue with a mode name."""
|
|
||||||
|
|
||||||
|
|
||||||
class UnknownModeError(ModeError):
|
|
||||||
"""Raised when attempting to use a mode that is not known."""
|
|
||||||
|
|
||||||
|
|
||||||
class ActiveModeError(ModeError):
|
|
||||||
"""Raised when attempting to remove the currently active mode."""
|
|
||||||
|
|
||||||
|
|
||||||
class CssPathError(Exception):
|
class CssPathError(Exception):
|
||||||
"""Raised when supplied CSS path(s) are invalid."""
|
"""Raised when supplied CSS path(s) are invalid."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user