From ba3a2407070459e9cd8febbe71a0d897d20b500b Mon Sep 17 00:00:00 2001 From: Bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sat, 26 Nov 2022 10:57:06 -0600 Subject: [PATCH] Add TooManyRequestsException with var retryWait --- src/NzbDrone.Common/Http/TooManyRequestsException.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Http/TooManyRequestsException.cs b/src/NzbDrone.Common/Http/TooManyRequestsException.cs index dcb261efa..1d86740ca 100644 --- a/src/NzbDrone.Common/Http/TooManyRequestsException.cs +++ b/src/NzbDrone.Common/Http/TooManyRequestsException.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace NzbDrone.Common.Http { @@ -25,5 +25,11 @@ namespace NzbDrone.Common.Http } } } + + public TooManyRequestsException(HttpRequest request, HttpResponse response, TimeSpan retryWait) + : base(request, response) + { + RetryAfter = retryWait; + } } }