Skip to content

Commit

Permalink
Clarify handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Fankam committed Aug 2, 2024
1 parent f1c1231 commit 5381c41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/code/extractor/Gateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private static ListGateways GetListGateways(IServiceProvider provider)
var dtoOption = await uri.TryGetDto(pipeline, cancellationToken);
return dtoOption.Map(dto => (uri.Name, dto));
})
// Handle scenarios where the SKU doesn't support gateways
.Catch((HttpRequestException exception) =>
exception.StatusCode == HttpStatusCode.InternalServerError
&& exception.Message.Contains("Request processing failed", StringComparison.OrdinalIgnoreCase)
Expand Down

0 comments on commit 5381c41

Please sign in to comment.