Skip to content

Commit 98e409c

Browse files
committedJan 30, 2025
Make Linter Happy :)
1 parent f3da038 commit 98e409c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎samcli/lib/sync/flows/alias_version_sync_flow.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def _equality_keys(self) -> Any:
118118

119119
def _get_version_alias_if_exists(self) -> Optional[str]:
120120
try:
121-
return self._lambda_client.get_alias(
122-
FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
123-
).get("FunctionVersion")
121+
result = self._lambda_client.get_alias(FunctionName=self.get_physical_id(
122+
self._function_identifier), Name=self._alias_name).get("FunctionVersion")
123+
return str(result) if result is not None else result
124124
except self._lambda_client.exceptions.ResourceNotFoundException:
125125
return None

0 commit comments

Comments
 (0)
Failed to load comments.