I have modified your code just for testing
Added/changed the following parts
Added sleep
Code: Select all
from time import mktime, strptime, localtime, sleep
Code: Select all
now = dt.now()
now = now.replace(microsecond = 999999)
for i in range(5):
if i>0:
print "Retry nbr: ", i
try:
runTime = dt.strptime(data[0], "%H:%M:%S").time()
break
except ImportError:
print "ImportError, trying again..."
sleep(0.2)
Here is the plugin with the changes (can maybe be made more professional,,,) Please note, I did also create a scheduled task that looks like this, maybe this is why you don't get the problem if it is not created. If I delete it, the problem is gone... Best regards, Walter
