mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 12:10:32 +01:00
catch OBSSDKRequestError
This commit is contained in:
parent
530daced56
commit
2127d175c7
@ -23,7 +23,7 @@ def list(ctx: typer.Context, source_name: str):
|
||||
"""List filters for a source."""
|
||||
try:
|
||||
resp = ctx.obj.get_source_filter_list(source_name)
|
||||
except obsws.error.OBSSDKError as e:
|
||||
except obsws.error.OBSSDKRequestError as e:
|
||||
if e.code == 600:
|
||||
err_console.print(f"No source was found by the name of '{source_name}'.")
|
||||
raise typer.Exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user