diff options
| author | Jan Tojnar <jtojnar@gmail.com> | 2024-07-13 08:40:39 +0200 |
|---|---|---|
| committer | Jan Tojnar <jtojnar@gmail.com> | 2024-07-13 15:48:17 +0200 |
| commit | 9fc19b086689e9b1c0a031e5faf841b454468d64 (patch) | |
| tree | 06208e9177dc25f1fcd2365708a8bdaa2df1c9aa /pkgs/development/python-modules/python-mapnik | |
| parent | 3c78e0ce042ee74dc75375dfd9199d4194511fb6 (diff) | |
maintainers/scripts/update.py: Fix worktree cleanup on failure
The context manager would previously just terminate early on exception.
As a result, the worktree and branch would not get pruned when update script failed.
Let’s wrap the cleanup code in `finally` block as suggested by Python docs:
https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
0 files changed, 0 insertions, 0 deletions
