diff -r 5105b896dded spyceCache.py
--- a/spyceCache.py	Sun Jul 09 19:25:01 2006 +0300
+++ b/spyceCache.py	Sun Jul 09 20:47:07 2006 +0300
@@ -127,7 +127,7 @@ class semanticCache(cache):
       # must be a file lock, rlock won't raise 
       raise "couldn't lock %s -- did you set tmp to be a writable directory in your spyceconf?\n\nexact exception was %s" % (self.lock.name, spyceUtil.exceptionString())
     try:
-      if self.cache:
+      if not self.cache is None:
         if not self.cache.has_key(key) or not self.valid(key, self.cache[key][0]):
           self.cache[key] = self.generate(key)
         return self.cache[key][1]
