Skip to content

Commit a07a534

Browse files
author
James William Pye
committed
Need to break there after the for-loop.
1 parent d49a907 commit a07a534

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgresql/documentation/copyman.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ on the `postgresql.copyman.ReceiverFault` must be referenced::
149149
... try:
150150
... for num_messages, num_bytes in copy:
151151
... update_rate(num_bytes)
152+
... break
152153
... except copyman.ReceiverFault as cf:
153154
... # Access the original exception using the receiver as the key.
154155
... original_exception = cf.faults[receiver]

0 commit comments

Comments
 (0)