Skip to content

Commit 9b48bcc

Browse files
committed
Fix return type
Fixes: #1036
1 parent 7c72cae commit 9b48bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vdirsyncer/storage/dav.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async def find_principal(self):
173173
dav_logger.debug("Trying out well-known URI")
174174
return await self._find_principal_impl(self._well_known_uri)
175175

176-
async def _find_principal_impl(self, url):
176+
async def _find_principal_impl(self, url) -> str:
177177
headers = self.session.get_default_headers()
178178
headers["Depth"] = "0"
179179
body = b"""
@@ -202,7 +202,7 @@ async def _find_principal_impl(self, url):
202202
response.url
203203
)
204204
)
205-
return response.url
205+
return response.url.human_repr()
206206
return urlparse.urljoin(str(response.url), rv.text).rstrip("/") + "/"
207207

208208
async def find_home(self):

0 commit comments

Comments
 (0)