Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ChangeEmptyError constructor access self.stack_name before assigning #2902

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions integration/helpers/deployer/exceptions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ def __init__(self, message: str) -> None:


class ChangeEmptyError(UserException):
def __init__(self, stack_name):
def __init__(self, stack_name: str) -> None:
message_fmt = "No changes to deploy. Stack {stack_name} is up to date"
super().__init__(message=message_fmt.format(stack_name=self.stack_name))
self.stack_name = stack_name
aahung marked this conversation as resolved.
Show resolved Hide resolved
super().__init__(message=message_fmt.format(stack_name=stack_name))


class ChangeSetError(UserException):
Expand Down