Skip to content

Commit 5cc9080

Browse files
author
Bilal Al
committed
added check for invalid version
1 parent f8679e6 commit 5cc9080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splitio/models/grammar/matchers/semver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _match(self, key, attributes=None, context=None):
194194
:returns: Wheter the match is successful.
195195
:rtype: bool
196196
"""
197-
if self._data is None:
197+
if self._data is None or self._semver is None:
198198
_LOGGER.error("stringMatcherData is required for EQUAL_TO_SEMVER matcher type")
199199
return None
200200

0 commit comments

Comments
 (0)