From 33ac9a06e8b518ffd119322585e6828710fa769a Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 10 Feb 2024 14:33:09 +0500 Subject: [PATCH] bug fix: https://github.com/usmannasir/cyberpanel/issues/1207 --- backup/backupManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backup/backupManager.py b/backup/backupManager.py index 656510dd0..666e69963 100755 --- a/backup/backupManager.py +++ b/backup/backupManager.py @@ -1748,7 +1748,10 @@ def changeAccountFrequencyNormal(self, request=None, userID=None, data=None): config = json.loads(nbj.config) config[IncScheduler.frequency] = backupFrequency - config[IncScheduler.retention] = backupRetention + try: + config[IncScheduler.retention] = backupRetention + except: + pass nbj.config = json.dumps(config) nbj.save()