1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-25 02:47:04 +00:00

Fixed UP041 (timeout-error-alias): Replace aliased errors with TimeoutError

This commit is contained in:
Teal Dulcet 2023-12-22 07:24:29 -08:00 committed by Joshua Tauberer
parent 54af4725f9
commit 20a99c0ab8

View File

@ -916,7 +916,7 @@ def get_latest_miab_version():
try:
return re.search(b'TAG=(.*)', urlopen("https://mailinabox.email/setup.sh?ping=1", timeout=5).read()).group(1).decode("utf8")
except (HTTPError, URLError, timeout):
except (TimeoutError, HTTPError, URLError):
return None
def check_miab_version(env, output):