davedash/elasticutils — Issue #22: es_required will throw an exception the first time it's called on a secondary thread
Author: erikrose
Created: 2012-01-12 20:38:42+00:00
State: open

https://github.com/davedash/elasticutils/blob/64a55ebaed0973a0027f3a0fffdfd8b7d083a903/elasticutils/__init__.py#L21 initializes the attr on `_local` only for the thread importing the module. Any other thread won't see that attr, and `es_required()` will throw an AttributeError the first time it's used on that thread.