From 49b432baf756bd36a29e85e0072024da7561b95a Mon Sep 17 00:00:00 2001 From: Uwe Kamper Date: Mon, 12 Feb 2024 15:20:40 +0100 Subject: [PATCH] #881 fix format str --- checks/tasks/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/tasks/mail.py b/checks/tasks/mail.py index 03facdec9..5b1221abe 100644 --- a/checks/tasks/mail.py +++ b/checks/tasks/mail.py @@ -881,7 +881,7 @@ def tlsrpt_callback(data, status, r): def resolve_tlsrpt_record(url, task): # Make sure, url does not start with a dot, then add "_smtp._tls." in front # of the domain name. - tls_rpt_url = f'_smtp._tls.{url.lstrip('.')}' + tls_rpt_url = f'_smtp._tls.{url.lstrip(".")}' return task.async_resolv(url, unbound.RR_TYPE_TXT, callback=tlsrpt_callback)