Skip to content

Commit 70b0f3e

Browse files
author
Bilal Al
committed
polish
1 parent 5d03848 commit 70b0f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splitio/models/grammar/matchers/semver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _build(self, raw_matcher):
153153
:param raw_matcher: raw matcher as fetched from splitChanges response.
154154
:type raw_matcher: dict
155155
"""
156-
self._data = raw_matcher['stringMatcherData']
156+
self._data = raw_matcher('stringMatcherData')
157157
self._semver = Semver(self._data)
158158

159159
def _match(self, key, attributes=None, context=None):
@@ -198,7 +198,7 @@ def _build(self, raw_matcher):
198198
:param raw_matcher: raw matcher as fetched from splitChanges response.
199199
:type raw_matcher: dict
200200
"""
201-
self._data = raw_matcher['stringMatcherData']
201+
self._data = raw_matcher.get('stringMatcherData')
202202
self._semver = Semver(self._data)
203203

204204
def _match(self, key, attributes=None, context=None):

0 commit comments

Comments
 (0)