diff --git a/StabilityMatrix.Core/Models/ConnectedModelInfo.cs b/StabilityMatrix.Core/Models/ConnectedModelInfo.cs index 10438fb0..f9c1f8d0 100644 --- a/StabilityMatrix.Core/Models/ConnectedModelInfo.cs +++ b/StabilityMatrix.Core/Models/ConnectedModelInfo.cs @@ -57,17 +57,10 @@ public class ConnectedModelInfo public static ConnectedModelInfo? FromJson(string json) { - try - { - return JsonSerializer.Deserialize( - json, - new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } - ); - } - catch (JsonException) - { - return default; - } + return JsonSerializer.Deserialize( + json, + new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } + ); } ///