Skip to content

Commit 35622ec

Browse files
committed
don't retry non-retryable APIStatusErrors
1 parent d6abe1a commit 35622ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/lemonslice/src/avatar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ export class AvatarSession {
288288
}
289289
return;
290290
} catch (e) {
291+
if (e instanceof APIStatusError && !e.retryable) {
292+
throw e;
293+
}
291294
if (e instanceof APIConnectionError) {
292295
this.#logger.warn({ error: String(e) }, 'failed to call lemonslice api');
293296
} else {

0 commit comments

Comments
 (0)