From a02b59d4e4af8f15405557a4597c28ab061d1159 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 22 Dec 2023 07:42:38 -0800 Subject: [PATCH] Fixed F401 (unused-import): `socket.timeout` imported but unused --- management/status_checks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index a753cb59..9f0a1474 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -912,7 +912,6 @@ def get_latest_miab_version(): # This pings https://mailinabox.email/setup.sh and extracts the tag named in # the script to determine the current product version. from urllib.request import urlopen, HTTPError, URLError - from socket import timeout try: return re.search(b'TAG=(.*)', urlopen("https://mailinabox.email/setup.sh?ping=1", timeout=5).read()).group(1).decode("utf8")