Skip to content

Commit 463ebe8

Browse files
committed
require status
1 parent 05e3bd6 commit 463ebe8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

livekit-api/livekit/api/twirp_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
code: str,
2828
msg: str,
2929
*,
30-
status: Optional[int] = None,
30+
status: int,
3131
metadata: Optional[Dict[str, str]] = None,
3232
) -> None:
3333
self._code = code
@@ -44,7 +44,7 @@ def message(self) -> str:
4444
return self._msg
4545

4646
@property
47-
def status(self) -> Optional[int]:
47+
def status(self) -> int:
4848
"""HTTP status code"""
4949
return self._status
5050

@@ -128,7 +128,6 @@ async def request(
128128
else:
129129
# when we have an error, Twirp always encode it in json
130130
error_data = await resp.json()
131-
print(f"Error: {error_data}, headers: {resp.headers}")
132131
raise TwirpError(
133132
error_data.get("code", "unknown"),
134133
error_data.get("msg", ""),

0 commit comments

Comments
 (0)