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:
parent
15bddcbc39
commit
a02b59d4e4
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user