Skip to content

Commit

Permalink
Revert "fix: AttributeError: module 'pydantic.v1' has no attribute 'e…
Browse files Browse the repository at this point in the history
…rror_wrapper'" (#3619)
  • Loading branch information
aaythapa authored Jun 24, 2024
1 parent b363455 commit 0f77157
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samtranslator/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,6 @@ def validate_properties_and_return_model(self, cls: Type[RT]) -> RT:
with suppress(KeyError):
error_properties = ".".join(str(x) for x in e.errors()[0]["loc"])
raise InvalidResourceException(self.logical_id, f"Property '{error_properties}' is invalid.") from e
except AttributeError as e:
raise InvalidResourceException(
self.logical_id, "Module 'pydantic.v1' has no attribute 'error_wrappers'"
) from e

def validate_properties(self) -> None:
"""Validates that the required properties for this Resource have been populated, and that all properties have
Expand Down

0 comments on commit 0f77157

Please sign in to comment.