Skip to content

Commit dcb3138

Browse files
committed
Merge pull request #34 from trungly/fix_empty_config
fix #33 - python client fails when no config is passed in
2 parents b3987a4 + 874afad commit dcb3138

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ldclient/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ def __init__(self, api_key, config=None):
153153
self._offline = False
154154
self._lock = Lock()
155155

156-
self._store = config.feature_store_class()
156+
self._store = self._config.feature_store_class()
157157
""" :type: FeatureStore """
158158

159-
self._feature_requester = config.feature_requester_class(
160-
api_key, config)
159+
self._feature_requester = self._config.feature_requester_class(
160+
api_key, self._config)
161161
""" :type: FeatureRequester """
162162

163163
self._stream_processor = None
164164
if self._config.stream:
165-
self._stream_processor = config.stream_processor_class(
166-
api_key, config, self._store)
165+
self._stream_processor = self._config.stream_processor_class(
166+
api_key, self._config, self._store)
167167
self._stream_processor.start()
168168

169169
@property

0 commit comments

Comments
 (0)