File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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" , "" ),
You can’t perform that action at this time.
0 commit comments