summaryrefslogtreecommitdiff
path: root/kafka/conn.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2019-01-07 12:57:25 -0800
committerJeff Widman <jeff@jeffwidman.com>2019-01-07 12:57:25 -0800
commit1a31be52ec012dfa0ef5079ff9982e01408a8fe1 (patch)
tree2329cc32638474edf4790226b56424ef2d535cf6 /kafka/conn.py
parentd2f9413b0311e6ec4d782cf9983f61c9f258cc7b (diff)
downloadkafka-python-1a31be52ec012dfa0ef5079ff9982e01408a8fe1.tar.gz
Fix `AttributeError` caused by `getattr()`
`getattr(object, 'x', object.y)` will evaluate the default argument `object.y` regardless of whether `'x'` exists. For details see: https://stackoverflow.com/q/31443989/770425
Diffstat (limited to 'kafka/conn.py')
0 files changed, 0 insertions, 0 deletions