diff --git a/docs/api.rst b/docs/api.rst index 8f64baf7..f2ee2984 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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))