graceful handling of empty files

This commit is contained in:
Donggyu Kim
2017-07-05 15:53:58 -07:00
committed by edwardcwang
parent 9e7c8dce3e
commit 02fef8e2c3
2 changed files with 10 additions and 9 deletions

View File

@@ -128,10 +128,10 @@ object Utils {
case (res, _) => res
}
)
case _ => None
case _ => Some(Nil)
}
} catch {
case _: Throwable => None
case _: Throwable => Some(Nil)
}
}