mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
catch more json exception
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Wox.Infrastructure.Storage
|
|||||||
{
|
{
|
||||||
_data = JsonConvert.DeserializeObject<T>(searlized, _serializerSettings);
|
_data = JsonConvert.DeserializeObject<T>(searlized, _serializerSettings);
|
||||||
}
|
}
|
||||||
catch (JsonSerializationException e)
|
catch (JsonException e)
|
||||||
{
|
{
|
||||||
LoadDefault();
|
LoadDefault();
|
||||||
Log.Exception($"|JsonStrorage.Deserialize|Deserialize error for json <{FilePath}>", e);
|
Log.Exception($"|JsonStrorage.Deserialize|Deserialize error for json <{FilePath}>", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user