mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
Re-instate for/else to avoid a raise after an error and a subsequent success
This commit is contained in:
parent
15b1d6085c
commit
1ba79d2bee
|
@ -443,8 +443,7 @@ def download_dep(url: str, file: str) -> None:
|
||||||
break
|
break
|
||||||
except urllib.error.URLError as e:
|
except urllib.error.URLError as e:
|
||||||
ex = e
|
ex = e
|
||||||
|
else:
|
||||||
if ex:
|
|
||||||
raise RuntimeError(ex)
|
raise RuntimeError(ex)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user