We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf636f6 commit d276fd6Copy full SHA for d276fd6
1 file changed
janus_client/admin_monitor.py
@@ -298,6 +298,10 @@ async def list_tokens(self) -> List:
298
message={"janus": "list_tokens"},
299
matcher={"janus": "success", "data": {"tokens": None}},
300
)
301
+
302
+ if is_subset(response, {"janus": "error"}):
303
+ raise Exception(response["error"])
304
305
return response["data"]["tokens"]
306
307
async def add_token(self, token: str = uuid.uuid4().hex, plugins: list = []) -> str:
0 commit comments