File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,10 @@ def _get_decision_for_cmab_experiment(
185
185
}
186
186
except Exception as e :
187
187
error_message = Errors .CMAB_FETCH_FAILED_DETAILED .format (
188
- experiment .key ,
189
- str (e )
188
+ experiment .key
190
189
)
191
190
if self .logger :
192
- self .logger .error (error_message )
191
+ self .logger .error (f' { error_message } { str ( e ) } ' )
193
192
return {
194
193
"error" : True ,
195
194
"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 decision for experiment key "{}" - {} '
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 :
You can’t perform that action at this time.
0 commit comments