mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
Ignore broken cache #783
This commit is contained in:
@@ -60,16 +60,11 @@ namespace Wox.Infrastructure.Storage
|
||||
|
||||
try
|
||||
{
|
||||
Data = (T)binaryFormatter.Deserialize(stream);
|
||||
Data = (T) binaryFormatter.Deserialize(stream);
|
||||
}
|
||||
catch (SerializationException e)
|
||||
{
|
||||
Log.Exception(e);
|
||||
stream.Close();
|
||||
LoadDefault();
|
||||
}
|
||||
catch (InvalidCastException e)
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Log.Error($"Broken cache file: {FilePath}");
|
||||
Log.Exception(e);
|
||||
stream.Close();
|
||||
LoadDefault();
|
||||
|
||||
Reference in New Issue
Block a user