catch errors
This commit is contained in:
parent
21c7f93d7a
commit
66429527ca
|
@ -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 New Issue