mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
catch errors
This commit is contained in:
parent
d640af9714
commit
da322a086b
1 changed files with 32 additions and 27 deletions
|
@ -80,6 +80,7 @@ export async function importPosts(
|
|||
}
|
||||
} else {
|
||||
for (const post of parsed.orderedItems) {
|
||||
try {
|
||||
linenum++;
|
||||
if (post.inReplyTo != null) {
|
||||
logger.info(`Is reply, skip [${linenum}] ...`);
|
||||
|
@ -108,6 +109,10 @@ export async function importPosts(
|
|||
apHashtags: undefined,
|
||||
apEmojis: undefined,
|
||||
});
|
||||
} catch (e) {
|
||||
logger.warn(`Error in line:${linenum} ${e}`);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue