Skip to content

Commit e758bf6

Browse files
authored
Update documentation mistake (aws-powertools#961)
1 parent 7414f89 commit e758bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/utilities/batch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ class MyPartialProcessor(BasePartialProcessor):
921921
def _clean(self):
922922
# It's called once, *after* closing processing all records (closing the context manager)
923923
# Here we're sending, at once, all successful messages to a ddb table
924-
with ddb_table.batch_writer() as batch:
924+
with self.ddb_table.batch_writer() as batch:
925925
for result in self.success_messages:
926926
batch.put_item(Item=result)
927927

0 commit comments

Comments
 (0)