From 02f2a34bcfd163a49e6564cb0dc66a0e42686763 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Mon, 30 May 2022 19:37:00 +0200 Subject: [PATCH] remove deprecated method call --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index e0cd6adf..5ae8cd05 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -723,7 +723,7 @@ def check_mail_domain(domain, env, output): output.print_ok(good_news) # Check MTA-STS policy. - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() sts_resolver = postfix_mta_sts_resolver.resolver.STSResolver(loop=loop) valid, policy = loop.run_until_complete(sts_resolver.resolve(domain)) if valid == postfix_mta_sts_resolver.resolver.STSFetchResult.VALID: