From: Frank Brehm Date: Wed, 17 Jan 2024 09:32:39 +0000 (+0100) Subject: Fixing linter errors on pp_admintools.app.pdns X-Git-Tag: 0.11.0~1^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=756c9c642f24972d26a0a05799e765f9ad9d82ef;p=pixelpark%2Fpp-admin-tools.git Fixing linter errors on pp_admintools.app.pdns --- 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)