Skip to content

Commit

Permalink
Error exception modification for KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
syldyer committed Oct 8, 2024
1 parent b34c67e commit c1e4966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpdk/core/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ def load_settings(self):
"Please consider upgrading to CFN-CLI 2.0 following the guide: "
"https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html"
)
except KeyError:
except KeyError as e:
raise InvalidProjectError(
f"Error extracting protocol version from '{self.settings_path}'"
f"Error extracting protocol version from '{self.settings_path}'", e
)

# backward compatible
Expand Down

0 comments on commit c1e4966

Please sign in to comment.