From 0e5fec5febcf7c3bae9cc24946a5bf214e0de28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 31 Jan 2020 15:37:06 +0100 Subject: [PATCH] EventIndex: Catch errors when removing a crawler checkpoint. --- src/indexing/EventIndex.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/indexing/EventIndex.js b/src/indexing/EventIndex.js index e1ec0d1d1c..55f8dc9986 100644 --- a/src/indexing/EventIndex.js +++ b/src/indexing/EventIndex.js @@ -356,7 +356,11 @@ export default class EventIndex extends EventEmitter { console.log("EventIndex: Done with the checkpoint", checkpoint); // We got to the start/end of our timeline, lets just // delete our checkpoint and go back to sleep. - await indexManager.removeCrawlerCheckpoint(checkpoint); + try { + await indexManager.removeCrawlerCheckpoint(checkpoint); + } catch (e) { + console.log("EventIndex: Error removing checkpoint", checkpoint, e); + } continue; }