diff --git a/backend/src/appointment/controller/calendar.py b/backend/src/appointment/controller/calendar.py index f3c785e88..ca39ad0a0 100644 --- a/backend/src/appointment/controller/calendar.py +++ b/backend/src/appointment/controller/calendar.py @@ -333,11 +333,17 @@ def test_connection(self) -> bool: except KeyError as ex: logging.error(f'KE: Error testing connection {ex}') return False - except (requests.exceptions.RequestException, caldav.lib.error.NotFoundError, caldav.lib.error.PropfindError) as ex: + except ( + requests.exceptions.RequestException, + caldav.lib.error.NotFoundError, + caldav.lib.error.PropfindError, + caldav.lib.error.AuthorizationError + ) as ex: """ RequestException: Max retries exceeded, bad connection, missing schema, etc... NotFoundError: Good server, bad url. PropfindError: Some properties could not be retrieved. + AuthorizationError: Credentials are not accepted. """ return False diff --git a/frontend/src/components/SettingsCalendar.vue b/frontend/src/components/SettingsCalendar.vue index 963a98cb8..9d7fd6723 100644 --- a/frontend/src/components/SettingsCalendar.vue +++ b/frontend/src/components/SettingsCalendar.vue @@ -1,16 +1,11 @@