mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Ignore broken cache #783
This commit is contained in:
parent
f32f37cfbb
commit
955ce1dd2d
1 changed files with 3 additions and 8 deletions
|
|
@ -62,14 +62,9 @@ namespace Wox.Infrastructure.Storage
|
||||||
{
|
{
|
||||||
Data = (T) binaryFormatter.Deserialize(stream);
|
Data = (T) binaryFormatter.Deserialize(stream);
|
||||||
}
|
}
|
||||||
catch (SerializationException e)
|
catch (System.Exception e)
|
||||||
{
|
|
||||||
Log.Exception(e);
|
|
||||||
stream.Close();
|
|
||||||
LoadDefault();
|
|
||||||
}
|
|
||||||
catch (InvalidCastException e)
|
|
||||||
{
|
{
|
||||||
|
Log.Error($"Broken cache file: {FilePath}");
|
||||||
Log.Exception(e);
|
Log.Exception(e);
|
||||||
stream.Close();
|
stream.Close();
|
||||||
LoadDefault();
|
LoadDefault();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue