Issue #180 resolved

cachefilter daemon thread exception

Robert Brewer
created an issue

Exception in thread expireCache (most likely raised during interpreter shutdown): Traceback (most recent call last): File "c:\python24\lib\threading.py", line 442, in __bootstrap File "c:\python24\lib\threading.py", line 422, in run File "c:\python24\lib\site-packages\cherrypy\lib\filter\cachefilter.py", line 62, in expireCache exceptions.AttributeError: 'NoneType' object has no attribute 'time' Unhandled exception in thread started by Error in sys.excepthook:

Original exception was:


The lines in question: {{{

!python

def expireCache(self):
    while True:
        expirationTime, objSize, objKey = self.expirationQueue.get(block=True, timeout=None)
        while (time.time() < expirationTime):   # line 62
            time.sleep(0.1)

}}}

Comments (3)

  1. Robert Brewer reporter

    Bah. Here's a better traceback.

    Exception in thread expireCache (most likely raised during interpreter shutdown):
    Traceback (most recent call last):
      File "c:\python24\lib\threading.py", line 442, in __bootstrap
      File "c:\python24\lib\threading.py", line 422, in run
      File "c:\python24\lib\site-packages\cherrypy\lib\filter\cachefilter.py", line 62, in expireCache
    exceptions.AttributeError: 'NoneType' object has no attribute 'time'
    Unhandled exception in thread started by
    Error in sys.excepthook:
    
    Original exception was:
    
  2. Log in to comment