From 9b48bccde2d315f81d716061fab8ed691ef078de Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 26 Jan 2023 18:01:08 +0100 Subject: [PATCH] Fix return type Fixes: https://github.com/pimutils/vdirsyncer/issues/1036 --- vdirsyncer/storage/dav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index dc9085f..62b7618 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -173,7 +173,7 @@ class Discover: dav_logger.debug("Trying out well-known URI") return await self._find_principal_impl(self._well_known_uri) - async def _find_principal_impl(self, url): + async def _find_principal_impl(self, url) -> str: headers = self.session.get_default_headers() headers["Depth"] = "0" body = b""" @@ -202,7 +202,7 @@ class Discover: response.url ) ) - return response.url + return response.url.human_repr() return urlparse.urljoin(str(response.url), rv.text).rstrip("/") + "/" async def find_home(self):