···8585 }
86868787 const { data } = await agent.getProfile({ actor: did });
8888- if (!data) throw new Error('Profile not found');
8888+ if (!data) {
8989+ console.log('OOPS: Profile not found and/or we could not fetch it');
9090+ return;
9191+ }
89929093 const avatar = await prepareAvatar(data);
9194 const prompt = createPrompt(data);