From f6845c53f2f145e263fb2d0512efa6ac3044c794 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Fri, 21 Aug 2020 00:49:26 +0200 Subject: [PATCH] :ambulance: Fix Auto clean causing crash #23 --- .../rootfs/opt/nextcloud_backup/tools/cronTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js index 07ef12b..04b8854 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js @@ -140,11 +140,11 @@ class CronContainer { _clean() { let autoCleanlocal = settingsTools.getSettings().auto_clean_local; if (autoCleanlocal != null && autoCleanlocal === "true") { - hassioApiTools.clean(); + hassioApiTools.clean().catch(() => {}); } let autoCleanCloud = settingsTools.getSettings().auto_clean_backup; if (autoCleanCloud != null && autoCleanCloud === "true") { - this.clean().catch(); + webdav.clean().catch(() => {}); } }