Skip to content

Commit

Permalink
Merge pull request aio-libs#563 from ultrabug/patch-1
Browse files Browse the repository at this point in the history
fix typo in error handling code sample
  • Loading branch information
tvoinarovskyi authored Oct 17, 2019
2 parents c0fa11f + 693d6c7 commit 1407754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Exception handling example:
try:
send_future = await producer.send('foobar', b'test data')
response = await send_future # wait until message is produced
except KafkaTimeourError:
except KafkaTimeoutError:
print("produce timeout... maybe we want to resend data again?")
except KafkaError as err:
print("some kafka error on produce: {}".format(err))
Expand Down

0 comments on commit 1407754

Please sign in to comment.