nr should initialize before if statement, fixes #124

This commit is contained in:
Rob Weber 2017-12-07 08:28:10 -06:00
parent f31c2f7b4d
commit 588132c8dc

View File

@ -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