From bf013d2b3f5f4f85777d157f006294f0ad4c8b99 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Tue, 19 Apr 2011 17:54:03 -0400 Subject: [PATCH] trap all exceptions when restoring cache --- compile/persist/FileBasedStore.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/persist/FileBasedStore.scala b/compile/persist/FileBasedStore.scala index c58f791db..74d563a7c 100644 --- a/compile/persist/FileBasedStore.scala +++ b/compile/persist/FileBasedStore.scala @@ -19,7 +19,7 @@ object FileBasedStore } def get(): Option[(Analysis, CompileSetup)] = - try { Some(getUncaught()) } catch { case io: IOException => None } + try { Some(getUncaught()) } catch { case _: Exception => None } def getUncaught(): (Analysis, CompileSetup) = IO.gzipFileIn(file)( in => read[(Analysis, CompileSetup)](in) ) }