From 32ce3bde211345cabb18cb01c01ca98b6c8e83e7 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sat, 29 Apr 2023 19:32:58 -0500 Subject: [PATCH] refactor: Fix serializable issue with CacheException --- .../PipelinePhases/QualityProfileConfigPhase.cs | 2 -- src/Recyclarr.TrashLib/Cache/CacheException.cs | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs b/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs index 99abbf01..2ed261fb 100644 --- a/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs +++ b/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs @@ -23,8 +23,6 @@ public class QualityProfileConfigPhase public IReadOnlyCollection Execute(IServiceConfiguration config) { - // todo: error & throw when there are duplicate profiles in config - ProcessLegacyResetUnmatchedScores(config); // 1. For each group of CFs that has a quality profile specified diff --git a/src/Recyclarr.TrashLib/Cache/CacheException.cs b/src/Recyclarr.TrashLib/Cache/CacheException.cs index 806095a4..4381aa32 100644 --- a/src/Recyclarr.TrashLib/Cache/CacheException.cs +++ b/src/Recyclarr.TrashLib/Cache/CacheException.cs @@ -1,9 +1,17 @@ +using System.Runtime.Serialization; + namespace Recyclarr.TrashLib.Cache; +[Serializable] public class CacheException : Exception { public CacheException(string? message) : base(message) { } + + protected CacheException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } }