Let me know if the problem is still there after you try that, and I'll pass on the issue if it is.
it did fix it but now i found a new error which said this NameError: name 'time_of_day' is not defined