Hide occasional FileLoadException (temporary error)

rendering v4.2
Liza 2023-03-11 01:50:26 +01:00
parent 3e9f14419c
commit 7bdf97411c
1 changed files with 3 additions and 1 deletions

View File

@ -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;