spacepaste

  1.  
  2. 18:19:07.885 T:2804 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
  3. - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
  4. Error Type: <type 'exceptions.NameError'>
  5. Error Contents: name 'new_datetime' is not defined
  6. Traceback (most recent call last):
  7. File "C:\Users\theater1\AppData\Roaming\Kodi\addons\plugin.video.cbs\default.py", line 23, in <module>
  8. from resources.lib import cbs
  9. File "C:\Users\theater1\AppData\Roaming\Kodi\addons\plugin.video.cbs\resources\lib\cbs.py", line 277, in <module>
  10. elif mode == 2: CBS().browseShows(url)
  11. File "C:\Users\theater1\AppData\Roaming\Kodi\addons\plugin.video.cbs\resources\lib\cbs.py", line 76, in __init__
  12. self.cache = SimpleCache()
  13. File "C:\Users\theater1\AppData\Roaming\Kodi\addons\script.module.simplecache\lib\simplecache.py", line 32, in __init__
  14. self.check_cleanup()
  15. File "C:\Users\theater1\AppData\Roaming\Kodi\addons\script.module.simplecache\lib\simplecache.py", line 141, in check_cleanup
  16. elif (eval(lastexecuted) + self.auto_clean_interval) < cur_time:
  17. File "<string>", line 1, in <module>
  18. NameError: name 'new_datetime' is not defined
  19. -->End of Python script error report<--
  20. def check_cleanup(self):
  21. '''check if cleanup is needed'''
  22. cur_time = datetime.datetime.now()
  23. lastexecuted = self.win.getProperty("simplecache.clean.lastexecuted")
  24. if not lastexecuted:
  25. self.win.setProperty("simplecache.clean.lastexecuted", repr(cur_time))
  26. elif (eval(lastexecuted) + self.auto_clean_interval) < cur_time:
  27. # cleanup needed...
  28. self.do_cleanup()
  29.