From 1a0f36c23376d373f362bd5f659221c513e62ec9 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 25 Sep 2020 09:27:36 +0100 Subject: [PATCH] Fix a problem when SSL fails --- maubot.yaml | 2 +- shameotron.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/maubot.yaml b/maubot.yaml index 246b3f8..b704017 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,6 +1,6 @@ maubot: 0.1.0 id: sh.wallace.matrix.shameotron -version: 0.0.13 +version: 0.0.14 license: MIT modules: - shameotron diff --git a/shameotron.py b/shameotron.py index 39732f4..9421493 100644 --- a/shameotron.py +++ b/shameotron.py @@ -99,6 +99,7 @@ class ShameOTron(Plugin): # parse the string from the certificate into a Python datetime object return datetime.strptime(ssl_info['notAfter'], ssl_date_fmt) + async def query_homeserver(self, host): """ Class method to query the Federation Tester to retrieve the running @@ -130,7 +131,7 @@ class ShameOTron(Plugin): ssl.SSLError, IndexError ) as error: - self.log.warning('SSL error for: %s (%s): %s', host, addr, error) + self.log.warning('SSL error for: %s: %s', host, error) ssl_expiry = None try: