From bd87673db391383712c1d69ac103f342b76990cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Wed, 27 Mar 2024 09:22:46 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Steam/Integration/ArchiHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs b/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs index 5ed15a883..72ee55f48 100644 --- a/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs +++ b/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs @@ -26,6 +26,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Linq; +using System.Net.Http; using System.Threading.Tasks; using ArchiSteamFarm.Core; using ArchiSteamFarm.Localization; @@ -209,11 +210,11 @@ public sealed class ArchiHandler : ClientMsgHandler { } catch (Exception e) { ArchiLogger.LogGenericWarningException(e); - throw new TimeoutException(string.Format(CultureInfo.CurrentCulture, Strings.ErrorObjectIsNull, nameof(serviceMethodResponse))); + throw new HttpRequestException(string.Format(CultureInfo.CurrentCulture, Strings.ErrorObjectIsNull, nameof(serviceMethodResponse))); } if (serviceMethodResponse.Result != EResult.OK) { - throw new TimeoutException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, serviceMethodResponse.Result)); + throw new HttpRequestException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, serviceMethodResponse.Result)); } CEcon_GetInventoryItemsWithDescriptions_Response response = serviceMethodResponse.GetDeserializedResponse();