Skip to content

Commit 654e069

Browse files
committed
Minor change in error handling example
1 parent 60b8feb commit 654e069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/adminapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,9 +862,9 @@ def example_delete_records(a, args):
862862
for partition, fut in futmap.items():
863863
try:
864864
result = fut.result()
865-
if result.err:
865+
if result.error:
866866
print(f"Error deleting records in topic {partition.topic} partition {partition.partition}" +
867-
f" before offset {partition.offset}: {result.err}")
867+
f" before offset {partition.offset}: {result.error.str()}")
868868
else:
869869
print(
870870
f"All records deleted before offset {partition.offset} in topic {partition.topic}" +

0 commit comments

Comments
 (0)