diff options
| author | Jeff Widman <jeff@jeffwidman.com> | 2019-01-07 12:57:25 -0800 |
|---|---|---|
| committer | Jeff Widman <jeff@jeffwidman.com> | 2019-01-07 12:57:25 -0800 |
| commit | 1a31be52ec012dfa0ef5079ff9982e01408a8fe1 (patch) | |
| tree | 2329cc32638474edf4790226b56424ef2d535cf6 /.gitmodules | |
| parent | d2f9413b0311e6ec4d782cf9983f61c9f258cc7b (diff) | |
| download | kafka-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 '.gitmodules')
0 files changed, 0 insertions, 0 deletions
