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
1 changed files with 1 additions and 1 deletions

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):