mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-05-16 06:20:23 +01:00
remove errors module
This commit is contained in:
parent
7915547fca
commit
467c14f570
@ -1,18 +0,0 @@
|
||||
"""Exceptions for obsws_cli."""
|
||||
|
||||
|
||||
class ObswsCliError(Exception):
|
||||
"""Base class for all exceptions raised by obsws_cli."""
|
||||
|
||||
def __init__(self, message: str):
|
||||
"""Initialize the exception with a message."""
|
||||
message = (
|
||||
message.split('With message: ')[1]
|
||||
if 'With message: ' in message
|
||||
else message
|
||||
)
|
||||
super().__init__(message)
|
||||
|
||||
|
||||
class ObswsCliBadParameter(ObswsCliError):
|
||||
"""Exception raised when a bad parameter is passed to a command."""
|
Loading…
x
Reference in New Issue
Block a user