Skip to content

Commit a8c67b2

Browse files
committed
refactor: change return for failure/success handlers
1 parent c89d10c commit a8c67b2

File tree

1 file changed

+3
-3
lines changed
  • aws_lambda_powertools/utilities/batch

1 file changed

+3
-3
lines changed

aws_lambda_powertools/utilities/batch/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ def success_handler(self, record, result):
6363
"""
6464
Success callback
6565
"""
66-
entry = (result, record)
66+
entry = ("success", result, record)
6767
self.success_messages.append(record)
6868
return entry
6969

70-
def failure_handler(self, record, error):
70+
def failure_handler(self, record, exception):
7171
"""
7272
Failure callback
7373
"""
74-
entry = (error, record)
74+
entry = ("fail", exception.args, record)
7575
self.fail_messages.append(entry)
7676
return entry

0 commit comments

Comments
 (0)