Skip to content

Commit

Permalink
Do not crash with invalid responses
Browse files Browse the repository at this point in the history
  • Loading branch information
heussd committed Jul 23, 2023
1 parent 3bc91bf commit 2cb0a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyword-matcher-go/pkg/fulltextrss/fulltextrss.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func RetrieveFullText(url string) RSSFullTextResponse {
var result RSSFullTextResponse
if err := json.Unmarshal(body, &result); err != nil {
fmt.Fprintf(os.Stderr, "Fivefilters service responded with invalid JSON: %s", string(body))
panic(err)
return RSSFullTextResponse{}
}

return result
Expand Down

0 comments on commit 2cb0a6f

Please sign in to comment.