cache.py: Ignore cache load errors and always just rebuild
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 13 Mar 2008 23:32:03 +0000 (23:32 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 13 Mar 2008 23:32:03 +0000 (23:32 +0000)
lib/bb/cache.py

index 8ca3aba..312ca15 100644 (file)
@@ -91,7 +91,7 @@ class Cache:
             except EOFError:
                 bb.msg.note(1, bb.msg.domain.Cache, "Truncated cache found, rebuilding...")
                 self.depends_cache = {}
-            except (ValueError, KeyError):
+            except:
                 bb.msg.note(1, bb.msg.domain.Cache, "Invalid cache found, rebuilding...")
                 self.depends_cache = {}
         else: