diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-09-13 07:56:05 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-09-13 07:56:05 +0100 |
commit | 55464fe1e748ebfb54fd514a109ee0ac615a222c (patch) | |
tree | 9a251593d71ff980886fce711876b9daf0e17f77 /lib/mauve/notifiers | |
parent | 768ccf6d467a9354dd35e842f040f6b5eb374735 (diff) |
Added rescue clause to XMPP connect
Diffstat (limited to 'lib/mauve/notifiers')
-rw-r--r-- | lib/mauve/notifiers/xmpp.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb index 9cc5ab5..77d6236 100644 --- a/lib/mauve/notifiers/xmpp.rb +++ b/lib/mauve/notifiers/xmpp.rb @@ -149,6 +149,10 @@ module Mauve end end end + rescue StandardError => ex + logger.error "Connect failed #{ex.to_s}" + logger.debug ex.backtrace.join("\n") + @client = nil end # |