Skip to content

Commit

Permalink
Fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Feb 14, 2024
1 parent 2771a53 commit a9ad825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litestar/data_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def extract(
else:
value = extractor(connection)
data[key] = value
return data
return cast("ExtractedRequestData", data)

@staticmethod
def extract_scheme(connection: ASGIConnection[Any, Any, Any, Any]) -> str:
Expand Down Expand Up @@ -307,7 +307,7 @@ async def extract_body(self, request: Request[Any, Any, Any]) -> Any:
key: repr(value) if isinstance(value, UploadFile) else value for key, value in form_data.multi_items()
}
except Exception as exc:
if self.skip_parse_on_exception:
if self.skip_parse_malformed_body:
return await request.body()
raise exc

Expand Down

0 comments on commit a9ad825

Please sign in to comment.