mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +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
|
||||
except urllib.error.URLError as e:
|
||||
ex = e
|
||||
|
||||
if ex:
|
||||
else:
|
||||
raise RuntimeError(ex)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user