Skip to content

Commit

Permalink
ignore 404 for no bridges found
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Oct 22, 2023
1 parent c2a11dd commit df36935
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/integration/rssbridge/rssbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func DetectBridges(rssbridgeURL, websiteURL string) (bridgeResponse []Bridge, er
return nil, err
}
defer response.Body.Close()
if response.StatusCode == http.StatusNotFound {
return
}
if err := json.NewDecoder(response.Body).Decode(&bridgeResponse); err != nil {
return nil, fmt.Errorf("RSS-Bridge: unable to decode bridge response: %w", err)
}
Expand Down

0 comments on commit df36935

Please sign in to comment.