diff options
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index fd0269da..82611bfd 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -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 |