File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ def _get_decision_for_cmab_experiment(
164
164
except Exception as e :
165
165
error_message = Errors .CMAB_FETCH_FAILED_DETAILED .format (experiment .key )
166
166
if self .logger :
167
- self .logger .error (f"{ error_message } - { str (e )} " )
167
+ self .logger .error (f"{ error_message } { str (e )} " )
168
168
return {
169
169
"error" : True ,
170
170
"result" : None ,
Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ class Errors:
127
127
ODP_INVALID_DATA : Final = 'ODP data is not valid.'
128
128
ODP_INVALID_ACTION : Final = 'ODP action is not valid (cannot be empty).'
129
129
MISSING_SDK_KEY : Final = 'SDK key not provided/cannot be found in the datafile.'
130
- CMAB_FETCH_FAILED : Final = 'CMAB decision fetch failed with status: {}'
131
- INVALID_CMAB_FETCH_RESPONSE : Final = 'Invalid CMAB fetch response'
132
- CMAB_FETCH_FAILED_DETAILED : Final = 'Failed to fetch CMAB data for experiment {}'
130
+ CMAB_FETCH_FAILED : Final = 'CMAB decision fetch failed with status: {}. '
131
+ INVALID_CMAB_FETCH_RESPONSE : Final = 'Invalid CMAB fetch response. '
132
+ CMAB_FETCH_FAILED_DETAILED : Final = 'Failed to fetch CMAB data for experiment {}. '
133
133
134
134
135
135
class ForcedDecisionLogs :
Original file line number Diff line number Diff line change @@ -988,7 +988,7 @@ def test_get_variation_cmab_experiment_deep_mock_500_error(self):
988
988
self .assertIn (detailed_error_message , reasons )
989
989
990
990
# Verify logger was called with the specific 500 error
991
- mock_logger .error .assert_any_call (f'{ detailed_error_message } - { error_message } ' )
991
+ mock_logger .error .assert_any_call (f'{ detailed_error_message } { error_message } ' )
992
992
993
993
def test_get_variation_cmab_experiment_forced_variation (self ):
994
994
"""Test get_variation with CMAB experiment when user has a forced variation."""
You can’t perform that action at this time.
0 commit comments