From 3e34834c7812a17bff20070e72d2d18c79b0c834 Mon Sep 17 00:00:00 2001 From: Jonathan Echavarria Date: Mon, 16 Oct 2017 11:19:32 -0400 Subject: [PATCH] Fixed rescuing Exception --- extensions/notifications/channels/pushover.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/notifications/channels/pushover.rb b/extensions/notifications/channels/pushover.rb index b509b8b3f..50486b596 100644 --- a/extensions/notifications/channels/pushover.rb +++ b/extensions/notifications/channels/pushover.rb @@ -15,7 +15,7 @@ module Channels res = client.notify(@config.get('beef.extension.notifications.pushover.user_key'), message) print_error '[Notifications] Pushover notification failed' unless res.ok? - rescue Exception => e + rescue => e print_error "[Notifications] Pushover notification initialization failed: '#{e.message}'" end end