mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
fixed error being assigned nil
This commit is contained in:
parent
97a727b286
commit
5258f8230b
@ -438,12 +438,12 @@ module HTTPX
|
||||
return unless @timeout <= 0
|
||||
end
|
||||
|
||||
error = if @total_timeout && @total_timeout.fires_in.negative?
|
||||
if @total_timeout && @total_timeout.fires_in.negative?
|
||||
ex = TotalTimeoutError.new(@total_timeout.interval, "Timed out after #{@total_timeout.interval} seconds")
|
||||
ex.set_backtrace(error.backtrace)
|
||||
ex
|
||||
error = ex
|
||||
elsif connecting?
|
||||
error.to_connection_error
|
||||
error = error.to_connection_error
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user