Wrong password results in 'Authorization required'

Issue #23 invalid
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()

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