From 588132c8dc5e77cbf43e85ce915da5b3a9bee60f Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Thu, 7 Dec 2017 08:28:10 -0600 Subject: [PATCH] nr should initialize before if statement, fixes #124 --- scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler.py b/scheduler.py index b01b507..66b3e46 100644 --- a/scheduler.py +++ b/scheduler.py @@ -22,9 +22,9 @@ class BackupScheduler: if(self.enabled == "true"): + nr = 0 if(xbmcvfs.exists(self.next_run_path)): - nr = 0 fh = xbmcvfs.File(self.next_run_path) try: #check if we saved a run time from the last run