Skip to content

Commit

Permalink
Re-instate for/else to avoid a raise after an error and a subsequent …
Browse files Browse the repository at this point in the history
…success
  • Loading branch information
hugovk committed Sep 20, 2023
1 parent 15b1d60 commit 1ba79d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 1ba79d2

Please sign in to comment.