diff --git a/vdirsyncer/http.py b/vdirsyncer/http.py index 42da400..979d7fc 100644 --- a/vdirsyncer/http.py +++ b/vdirsyncer/http.py @@ -140,8 +140,8 @@ async def request( kwargs.pop("cert", None) # TODO XXX FIXME! - # Hacks to translate API - if auth := kwargs.pop("auth", None): + auth = kwargs.pop("auth", None) + if auth: kwargs["auth"] = aiohttp.BasicAuth(*auth) r = func(method, url, ssl=ssl, **kwargs)