Fixed rescuing Exception

This commit is contained in:
Jonathan Echavarria
2017-10-16 11:19:32 -04:00
committed by GitHub
parent 509d1ac086
commit 3e34834c78

View File

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