summaryrefslogtreecommitdiff
path: root/kafka/protocol/commit.py
diff options
context:
space:
mode:
authorAndre Araujo <asdaraujo@gmail.com>2017-11-06 16:00:34 -0800
committerJeff Widman <jeff@jeffwidman.com>2018-02-21 13:30:12 -0800
commit0f5d35fa3489fa36000c05a891d375cc30672e23 (patch)
tree0b8b15aa23544ff5f70e53423836711325700627 /kafka/protocol/commit.py
parent54d64105c0fec604140b581fd0b0fb3f7ac54b50 (diff)
downloadkafka-python-0f5d35fa3489fa36000c05a891d375cc30672e23.tar.gz
Check timeout type in KafkaClient constructor
If a future was passed as the only positional parameter it would be assigned to the "timeout_ms" parameter erroneously. This mistake would not raise any exception but would lead to odd behaviour later, what could make it extremely difficult to troubleshoot. Adding a type check ensures that an exception is raise earlier to notify the user about the problem.
Diffstat (limited to 'kafka/protocol/commit.py')
0 files changed, 0 insertions, 0 deletions