Skip to content

Commit 5b33ead

Browse files
authored
fix: ChangeEmptyError constructor access self.stack_name before assigning (#2902)
1 parent f10e3ad commit 5b33ead

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

integration/helpers/deployer/exceptions/exceptions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ def __init__(self, message: str) -> None:
1515

1616

1717
class ChangeEmptyError(UserException):
18-
def __init__(self, stack_name):
18+
def __init__(self, stack_name: str) -> None:
1919
message_fmt = "No changes to deploy. Stack {stack_name} is up to date"
20-
super().__init__(message=message_fmt.format(stack_name=self.stack_name))
21-
self.stack_name = stack_name
20+
super().__init__(message=message_fmt.format(stack_name=stack_name))
2221

2322

2423
class ChangeSetError(UserException):

0 commit comments

Comments
 (0)