1. Cyril R
  2. caldav
  3. Issues

Issues

Issue #23 invalid

Wrong password results in 'Authorization required'

Anonymous created an issue

If i try something simple like:

from datetime import datetime
import caldav
from caldav.elements import dav, cdav
# Principal url
url = "https://user:wrongpass@host/path"
client = caldav.DAVClient(url)
principal = caldav.Principal(client, url)
calendars = principal.calendars()
print(calendars)

and the password is wrong, the message from python is

caldav.lib.error.AuthorizationError: AuthorizationError at '<somewhere>', reason 'Authorization Required'

which is pretty misleading. Should be something along the lines of 'Wrong user or password'...

Comments (1)

  1. Log in to comment