refactor: Ignore Pydantic deprecation warning when building component
This commit is contained in:
parent
0e3a2f6ff7
commit
6e772f54c6
1 changed files with 3 additions and 2 deletions
|
|
@ -123,8 +123,9 @@ async def build_component(
|
||||||
):
|
):
|
||||||
# Now set the params as attributes of the custom_component
|
# Now set the params as attributes of the custom_component
|
||||||
custom_component.set_attributes(params)
|
custom_component.set_attributes(params)
|
||||||
warnings.filterwarnings("ignore", category=PydanticDeprecatedSince20)
|
with warnings.catch_warnings():
|
||||||
build_results, artifacts = await custom_component.build_results(vertex)
|
warnings.filterwarnings("ignore", category=PydanticDeprecatedSince20)
|
||||||
|
build_results, artifacts = await custom_component.build_results(vertex)
|
||||||
|
|
||||||
return custom_component, build_results, artifacts
|
return custom_component, build_results, artifacts
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue