summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Havekes <p.havekes@avans.nl>2018-10-19 11:47:51 +0200
committerPeter Havekes <p.havekes@avans.nl>2018-10-19 11:47:51 +0200
commit3ab3e115c2a8592edb2065464d4c603103fc814b (patch)
treef181f50d7872ff9993fe3e03760888d060792c09
parent2afae21b2bfe0186d6ea29f20185de43d9e24a3d (diff)
downloadcalendar-cli-3ab3e115c2a8592edb2065464d4c603103fc814b.zip
Disable SSL warning
-rwxr-xr-xcalendar-cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index 60fb11c..08a48c4 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -33,6 +33,7 @@ import os
import logging
import sys
import re
+import urllib3
__version__ = "0.11.0"
__author__ = "Tobias Brox"
@@ -873,6 +874,9 @@ def main():
caldav_conn = caldav_connect(args)
else:
caldav_conn = None
+
+ if args.ssl_verify_cert == 'no':
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
ret = args.func(caldav_conn, args)