File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ async def execute(self) -> APIResponse[_ReturnT]:
71
71
if self .headers .get (
72
72
"Accept"
73
73
) and "application/vnd.pgrst.plan" in self .headers .get ("Accept" ):
74
- if not "+json" in self .headers .get ("Accept" ):
74
+ if "+json" not in self .headers .get ("Accept" ):
75
75
return body
76
76
return APIResponse [_ReturnT ].from_http_request_response (r )
77
77
else :
78
78
raise APIError (r .json ())
79
79
except ValidationError as e :
80
80
raise APIError (r .json ()) from e
81
- except JSONDecodeError as e :
81
+ except JSONDecodeError :
82
82
raise APIError (generate_default_error_message (r ))
83
83
84
84
@@ -127,7 +127,7 @@ async def execute(self) -> SingleAPIResponse[_ReturnT]:
127
127
raise APIError (r .json ())
128
128
except ValidationError as e :
129
129
raise APIError (r .json ()) from e
130
- except JSONDecodeError as e :
130
+ except JSONDecodeError :
131
131
raise APIError (generate_default_error_message (r ))
132
132
133
133
Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ def execute(self) -> APIResponse[_ReturnT]:
71
71
if self .headers .get (
72
72
"Accept"
73
73
) and "application/vnd.pgrst.plan" in self .headers .get ("Accept" ):
74
- if not "+json" in self .headers .get ("Accept" ):
74
+ if "+json" not in self .headers .get ("Accept" ):
75
75
return body
76
76
return APIResponse [_ReturnT ].from_http_request_response (r )
77
77
else :
78
78
raise APIError (r .json ())
79
79
except ValidationError as e :
80
80
raise APIError (r .json ()) from e
81
- except JSONDecodeError as e :
81
+ except JSONDecodeError :
82
82
raise APIError (generate_default_error_message (r ))
83
83
84
84
@@ -127,7 +127,7 @@ def execute(self) -> SingleAPIResponse[_ReturnT]:
127
127
raise APIError (r .json ())
128
128
except ValidationError as e :
129
129
raise APIError (r .json ()) from e
130
- except JSONDecodeError as e :
130
+ except JSONDecodeError :
131
131
raise APIError (generate_default_error_message (r ))
132
132
133
133
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def from_http_request_response(
196
196
) -> Self :
197
197
try :
198
198
data = request_response .json ()
199
- except JSONDecodeError as e :
199
+ except JSONDecodeError :
200
200
return cls (data = [], count = 0 )
201
201
count = cls ._get_count_from_http_request_response (request_response )
202
202
# the type-ignore here is as pydantic needs us to pass the type parameter
You can’t perform that action at this time.
0 commit comments