summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py6
1 files changed, 5 insertions, 1 deletions
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')