From 3ab3e115c2a8592edb2065464d4c603103fc814b Mon Sep 17 00:00:00 2001 From: Peter Havekes Date: Fri, 19 Oct 2018 11:47:51 +0200 Subject: Disable SSL warning --- calendar-cli.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3