From 4e2d51a4ea8bbc9a4308771cedf33f39cd66c3e9 Mon Sep 17 00:00:00 2001 From: Peter Havekes Date: Fri, 19 Oct 2018 11:54:15 +0200 Subject: Disable except that needs more checking --- calendar-cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar-cli.py b/calendar-cli.py index 08a48c4..8c01e14 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -149,12 +149,15 @@ def _calendar_addics(caldav_conn, ics, uid, args): except caldav.lib.error.AuthorizationError as e: print("Error logging in"); sys.exit(2) + """ + Peter Havekes: This needs more checking. It works for me when connecting to O365 + except caldav.lib.error.PutError as e: if "200 OK" in str(e): print("Duplicate") else: raise - + """ def calendar_addics(caldav_conn, args): """ -- cgit v1.2.3