diff --git a/src/FilterLists.Agent/Infrastructure/UrlRepository.cs b/src/FilterLists.Agent/Infrastructure/UrlRepository.cs index f6afeff49..2756691c1 100644 --- a/src/FilterLists.Agent/Infrastructure/UrlRepository.cs +++ b/src/FilterLists.Agent/Infrastructure/UrlRepository.cs @@ -52,7 +52,7 @@ public UrlRepository(IRestClient apiClient, HttpClient httpClient, public async Task> GetAllAsync(CancellationToken cancellationToken) { if (!EntityUrlsEndpoints.ContainsKey(typeof(TModel).Name)) - throw new InvalidEnumArgumentException(_localizer["The type of TModel is not valid."]); + throw new ArgumentException(_localizer["The type of TModel is not valid."]); var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed"); var response = await _apiClient.ExecuteTaskAsync>(request, cancellationToken); if (response.ErrorException != null)