Fix missing clause in scrape stage
This commit is contained in:
parent
b1c0ba3998
commit
e3ec1d6040
|
@ -73,6 +73,9 @@ defmodule Frenzy.Pipeline.ScrapeStage do
|
|||
{:ok, %Tesla.Env{status: code} = response} when code in 200..299 ->
|
||||
handle_response(url, response, opts)
|
||||
|
||||
{:ok, %Tesla.Env{status: code}} ->
|
||||
{:error, "Unexpected HTTP code #{code}"}
|
||||
|
||||
{:error, reason} ->
|
||||
{:error, "Couldn't scrape article: #{reason}"}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue