From 439197dc4cbb05f2559253141230cd8a3e8e9521 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 23 Jan 2016 08:35:36 +0100 Subject: calcurse-caldav: Make InsecureSSL optional --- contrib/caldav/calcurse-caldav.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index edd50d8..5a6206d 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -335,7 +335,11 @@ except FileNotFoundError as e: hostname = config.get('General', 'HostName') path = config.get('General', 'Path').rstrip('/') + '/' -insecure_ssl = config.getboolean('General', 'InsecureSSL') + +if config.has_option('General', 'InsecureSSL'): + insecure_ssl = config.getboolean('General', 'InsecureSSL') +else: + insecure_ssl = False if config.has_option('General', 'Binary'): calcurse = config.get('General', 'Binary') -- cgit v1.2.3