~singpolyma/sgx-jmp

46147c4b2826de1f201de611552440c22f53d36c — Stephen Paul Weber 2 years ago 12e2eef
Do not log error when hangup/voicemail a call that is already gone
1 files changed, 4 insertions(+), 0 deletions(-)

M web.rb
M web.rb => web.rb +4 -0
@@ 151,6 151,10 @@ class Web < Roda
			call_id,
			body: body
		)
	rescue Bandwidth::ApiErrorResponseException
		# If call does not exist, don't need to hang up or send to voicemail
		# Other side must have hung up already
		raise $! unless $!.response_code.to_s == "404"
	end

	route do |r|