Skip to content

Commit

Permalink
fix: ChangeEmptyError constructor access self.stack_name before assig…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
aahung committed Feb 13, 2023
1 parent fcbdb1b commit 39a5ff1
Showing 1 changed file with 2 additions and 3 deletions.
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
super().__init__(message=message_fmt.format(stack_name=stack_name))


class ChangeSetError(UserException):
Expand Down

0 comments on commit 39a5ff1

Please sign in to comment.