From dcb1e7ef0b90b80e7e8d51f18f3dfeeaddec23d4 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 20 Aug 2018 11:09:01 -0400 Subject: [PATCH] Fix catching the wrong exception type --- src/Tgstation.Server.Client/ApiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Client/ApiClient.cs b/src/Tgstation.Server.Client/ApiClient.cs index c9e16bdca2..ad507b4d7f 100644 --- a/src/Tgstation.Server.Client/ApiClient.cs +++ b/src/Tgstation.Server.Client/ApiClient.cs @@ -102,7 +102,7 @@ namespace Tgstation.Server.Client //check if json serializes to an error message errorMessage = JsonConvert.DeserializeObject(json, serializerSettings); } - catch (JsonSerializationException) { } + catch (JsonException) { } switch (response.StatusCode) {