From 3d92f248341dd3046a43f5af30d600ea5381e342 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Sun, 10 Feb 2013 11:29:14 +0100 Subject: [PATCH] don't crash when cacerts.pem file doesn't exists --- src/common/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 6924f0eb28..c2aefdaf84 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1168,6 +1168,8 @@ class Connection(CommonConnection, ConnectionHandlers): port = self._current_host['port'] cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem') + if not os.path.exists(cacerts): + cacerts = '' mycerts = common.gajim.MY_CACERTS secure_tuple = (self._current_type, cacerts, mycerts) -- GitLab