Fixed UP041 (timeout-error-alias): Replace aliased errors with `TimeoutError`
This commit is contained in:
parent
54af4725f9
commit
20a99c0ab8
|
@ -916,7 +916,7 @@ def get_latest_miab_version():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return re.search(b'TAG=(.*)', urlopen("https://mailinabox.email/setup.sh?ping=1", timeout=5).read()).group(1).decode("utf8")
|
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
|
return None
|
||||||
|
|
||||||
def check_miab_version(env, output):
|
def check_miab_version(env, output):
|
||||||
|
|
Loading…
Reference in New Issue