From 7bdf97411cb6863dc4ca03feeaba160962f9313d Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sat, 11 Mar 2023 01:50:26 +0100 Subject: [PATCH] Hide occasional FileLoadException (temporary error) --- Pal.Client/Plugin.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Pal.Client/Plugin.cs b/Pal.Client/Plugin.cs index e917743..edcdc0d 100644 --- a/Pal.Client/Plugin.cs +++ b/Pal.Client/Plugin.cs @@ -4,6 +4,7 @@ using Pal.Client.Rendering; using System; using System.Collections.Generic; using System.Globalization; +using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -104,7 +105,8 @@ namespace Pal.Client } catch (Exception e) when (e is ObjectDisposedException or OperationCanceledException - or RepoVerification.RepoVerificationFailedException) + or RepoVerification.RepoVerificationFailedException + || (e is FileLoadException && _pluginInterface.IsDev)) { _rootScopeCompletionSource.SetException(e); _loadState = ELoadState.Error;