diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 08:35:36 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 08:35:36 +0100 |
commit | 439197dc4cbb05f2559253141230cd8a3e8e9521 (patch) | |
tree | de9c5f70866422cfb6ff9a3c4c3d9a9e314cd5b8 /contrib | |
parent | dcdc79217822adc4311b787aed1c7adabebf3325 (diff) | |
download | calcurse-439197dc4cbb05f2559253141230cd8a3e8e9521.zip |
calcurse-caldav: Make InsecureSSL optional
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 6 |
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') |