Backport hotfix, don't exit on exception

Stephen Paul Weber created

Change summary

sgx-bwmsgsv2.rb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

Detailed changes

sgx-bwmsgsv2.rb 🔗

@@ -1266,10 +1266,8 @@ class WebhookHandler < Goliath::API
 		[200, {}, "OK"]
 	rescue Exception => e
 		Sentry.capture_exception(e)
-		puts 'Shutting down gateway due to exception 013: ' + e.message
-		SGXbwmsgsv2.shutdown
-		puts 'Gateway has terminated.'
-		EM.stop unless ENV['ENV'] == 'test'
+		p e
+		[500, {}, "Error"]
 	end
 end