Skip to content

Commit

Permalink
producer: fix produce timeout message (dpkp#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Eloranta authored and 88manpreet committed Aug 24, 2017
1 parent e581e13 commit e2eb7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/producer/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def _wait_on_metadata(self, topic, max_wait):
elapsed = time.time() - begin
if not metadata_event.is_set():
raise Errors.KafkaTimeoutError(
"Failed to update metadata after %s secs.", max_wait)
"Failed to update metadata after %.1f secs." % max_wait)
elif topic in self._metadata.unauthorized_topics:
raise Errors.TopicAuthorizationFailedError(topic)
else:
Expand Down

0 comments on commit e2eb7a5

Please # to comment.