File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/codewhisperer/service Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -301,8 +301,10 @@ export class RecommendationHandler {
301
301
if ( invocationResult === 'Succeeded' ) {
302
302
CodeWhispererCodeCoverageTracker . getTracker ( session . language ) ?. incrementServiceInvocationCount ( )
303
303
} else {
304
- // TODO: Double-check with service side that this is an AccessDeniedException
305
- if ( errorMessage ?. includes ( invalidCustomizationMessage ) && errorCode === 'AccessDeniedException' ) {
304
+ if (
305
+ ( errorMessage ?. includes ( invalidCustomizationMessage ) && errorCode === 'AccessDeniedException' ) ||
306
+ errorCode === 'ResourceNotFoundException'
307
+ ) {
306
308
getLogger ( )
307
309
. debug ( `The selected customization is no longer available. Retrying with the default model.
308
310
Failed request id: ${ requestId } ` )
You can’t perform that action at this time.
0 commit comments