From 8b61a2050fe0338f4873e4d44a2ccd189c1a2b68 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sat, 24 Jan 2009 12:45:57 +0000
Subject: [PATCH] don't fail when there is an unreadable certificate file.

---
 src/common/xmpp/tls_nb.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/xmpp/tls_nb.py b/src/common/xmpp/tls_nb.py
index cebd7d47db..52a429cc4d 100644
--- a/src/common/xmpp/tls_nb.py
+++ b/src/common/xmpp/tls_nb.py
@@ -307,6 +307,7 @@ class NonBlockingTLS(PlugIn):
 		except IOError, e:
 			log.warning('Unable to open certificate file %s: %s' % \
 				(cert_path, str(e)))
+			return
 		lines = f.readlines()
 		i = 0
 		begin = -1
-- 
GitLab