Re-instate for/else to avoid a raise after an error and a subsequent success

This commit is contained in:
Hugo van Kemenade 2023-09-20 14:07:04 +03:00
parent 15b1d6085c
commit 1ba79d2bee

View File

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