Hide occasional FileLoadException (temporary error)

This commit is contained in:
Liza 2023-03-11 01:50:26 +01:00
parent 3e9f14419c
commit 7bdf97411c

View File

@ -4,6 +4,7 @@ using Pal.Client.Rendering;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.IO;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -104,7 +105,8 @@ namespace Pal.Client
} }
catch (Exception e) when (e is ObjectDisposedException catch (Exception e) when (e is ObjectDisposedException
or OperationCanceledException or OperationCanceledException
or RepoVerification.RepoVerificationFailedException) or RepoVerification.RepoVerificationFailedException
|| (e is FileLoadException && _pluginInterface.IsDev))
{ {
_rootScopeCompletionSource.SetException(e); _rootScopeCompletionSource.SetException(e);
_loadState = ELoadState.Error; _loadState = ELoadState.Error;