Skip to content

Commit 1d3a5aa

Browse files
authored
Merge pull request #101 from splitio/fix/HotFixInputSanitization
fixed issue on exception
2 parents 2ccb523 + 77a74f1 commit 1d3a5aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

splitio/clients.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ def get_treatment(self, key, feature, attributes=None):
139139
self._broker.get_change_number(), bucketing_key, start
140140
)
141141
self._record_stats(impression, start, SDK_GET_TREATMENT)
142+
143+
self._handle_custom_impression(impression, attributes)
142144
except Exception: # pylint: disable=broad-except
143145
self._logger.exception(
144146
'Exception reporting impression into get_treatment exception block'
145147
)
146-
147-
self._handle_custom_impression(impression, attributes)
148-
149148
return CONTROL
150149

151150
def _build_impression(

0 commit comments

Comments
 (0)