changeset f882cb23d496 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=f882cb23d496 description: don't crash when cacerts.pem file doesn't exists
diffstat:
src/common/connection.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 3f8001c9d5c1 -r f882cb23d496 src/common/connection.py --- a/src/common/connection.py Tue Feb 05 13:22:03 2013 +0400 +++ b/src/common/connection.py Sun Feb 10 11:29:14 2013 +0100 @@ -1168,6 +1168,8 @@ 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)