From 851702a23340c11488588f64722227be3ac6dbef Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Fri, 16 Feb 2024 10:34:02 +0100 Subject: [PATCH] Set default _auth_plugin_name for Connection to ""... ... in case it doesn't get set later. Fixes: https://github.com/long2ice/asyncmy/issues/86 --- asyncmy/connection.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asyncmy/connection.pyx b/asyncmy/connection.pyx index a732560..9330cae 100644 --- a/asyncmy/connection.pyx +++ b/asyncmy/connection.pyx @@ -297,6 +297,8 @@ class Connection: self._reader: Optional[StreamReader] = None self._writer: Optional[StreamWriter] = None + self._auth_plugin_name = "" + def _create_ssl_ctx(self, sslp): if isinstance(sslp, ssl.SSLContext): return sslp