Skip to content

Commit 8066b14

Browse files
committed
fix: support python3.8. catch more specific error
1 parent 7029219 commit 8066b14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
boto3>=1.34.0,<2.0.0
2-
jsonschema<5,>=4.25
2+
jsonschema<5,>=4.23
33
typing_extensions>=4.4 # 3.8 doesn't have Required, TypeGuard and ParamSpec
44

55
# resource validation & schema generation

samtranslator/model/sam_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
aws_serverless_function,
4545
aws_serverless_graphqlapi,
4646
)
47-
except Exception:
47+
except RuntimeError: # Pydantic fails when initializing the model classes with a RuntimeError in 3.14
4848
aws_serverless_capacity_provider = cast(ModuleType, None)
4949
aws_serverless_function = cast(ModuleType, None)
5050
aws_serverless_graphqlapi = cast(ModuleType, None)

0 commit comments

Comments
 (0)