Don't break ca-bundle API just yet

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-01-03 23:36:25 +01:00
parent e56930e0a1
commit 9f38c8944d
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -771,6 +771,9 @@ class XMLStream(asyncio.BaseProtocol):
self.certfile, self.keyfile)
if self.ca_certs is not None:
ca_cert: Optional[Path] = None
# XXX: Compat before d733c54518.
if isinstance(self.ca_certs, str):
self.ca_certs = Path(self.ca_certs)
if isinstance(self.ca_certs, Path):
if self.ca_certs.is_file():
ca_cert = self.ca_certs