From 756c9c642f24972d26a0a05799e765f9ad9d82ef Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 17 Jan 2024 10:32:39 +0100 Subject: [PATCH] Fixing linter errors on pp_admintools.app.pdns --- lib/pp_admintools/app/pdns.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pp_admintools/app/pdns.py b/lib/pp_admintools/app/pdns.py index 641f7f5..8bf78b2 100644 --- a/lib/pp_admintools/app/pdns.py +++ b/lib/pp_admintools/app/pdns.py @@ -30,7 +30,7 @@ from fb_tools.xlate import format_list import psutil -from requests import ConnectionError, ReadTimeout, ConnectTimeout +import requests # Own modules from .mail import BaseMailApplication, MailAppError @@ -435,7 +435,9 @@ class PpPDNSApplication(BaseMailApplication): return self.pdns.get_api_server_version() - except (ConnectionError, ReadTimeout, ConnectTimeout, PowerDNSHandlerError) as e: + except ( + requests.ConnectionError, requests.ReadTimeout, + requests.ConnectTimeout, PowerDNSHandlerError) as e: msg = _('Got a {} during evaluating the PDNS server version from API:').format( e.__class__.__name__) msg += ' ' + str(e) -- 2.39.5