Skip to content

Commit

Permalink
do not throw error if we can not dismiss job notification
Browse files Browse the repository at this point in the history
  • Loading branch information
haroun committed Sep 4, 2024
1 parent a354598 commit 5c7e539
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/methods/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ module.exports = self => {

self.apos.notification
.dismiss(req, notificationId, 2000)
.catch(self.apos.util.error);
.catch(() => {
// Do nothing because it's not an issue
});

await self.remove(exportPath);
return;
Expand Down Expand Up @@ -892,7 +894,11 @@ module.exports = self => {
jobManager.end(job, true);
}
if (notificationId) {
self.apos.notification.dismiss(req, notificationId, 2000).catch(self.apos.util.error);
self.apos.notification
.dismiss(req, notificationId, 2000)
.catch(() => {
// Do nothing because it's not an issue
});
}

await self.remove(exportPath);
Expand Down

0 comments on commit 5c7e539

Please sign in to comment.