1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-03 04:07:05 +00:00

Fixed F401 (unused-import): socket.timeout imported but unused

This commit is contained in:
Teal Dulcet 2023-12-22 07:42:38 -08:00 committed by Joshua Tauberer
parent 15bddcbc39
commit a02b59d4e4

View File

@ -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")