aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-23 08:35:36 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-23 08:35:36 +0100
commit439197dc4cbb05f2559253141230cd8a3e8e9521 (patch)
treede9c5f70866422cfb6ff9a3c4c3d9a9e314cd5b8 /contrib/caldav
parentdcdc79217822adc4311b787aed1c7adabebf3325 (diff)
downloadcalcurse-439197dc4cbb05f2559253141230cd8a3e8e9521.tar.gz
calcurse-439197dc4cbb05f2559253141230cd8a3e8e9521.zip
calcurse-caldav: Make InsecureSSL optional
Diffstat (limited to 'contrib/caldav')
-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')