2014-10-20, 03:48
I did some manual testing, and everything was fine, but when I setup the auto update I got a script error indicating that the datetime ' ' wasn't a valid format. Sure enough, if you look at service.py, it's trying to read a non-existent setting (Update_Timer_NextRun). I unremarked the try/except block so that if there is no setting it will assume the last update was now, and then it runs fine. Why did you remark out the try/except? Here's what worked for me:
P.S. it would probably be a good idea to catch the datetime exception rather than just catch every exception. But you probably know that.
Code:
try:
Update_Timer_LastRun = REAL_SETTINGS.getSetting('Update_Timer_NextRun')
Update_Timer_LastRun = Update_Timer_LastRun.split('.')[0]
Update_Timer_LastRun = datetime.datetime.strptime(Update_Timer_LastRun, '%Y-%m-%d %H:%M:%S')
except:
Update_Timer_LastRun = now
P.S. it would probably be a good idea to catch the datetime exception rather than just catch every exception. But you probably know that.