Do not log error when hangup/voicemail a call that is already gone

Stephen Paul Weber created

Change summary

web.rb | 4 ++++
1 file changed, 4 insertions(+)

Detailed changes

web.rb 🔗

@@ -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|