Skip to content

Commit 7891de1

Browse files
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent b1a9694 commit 7891de1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,8 @@ def integration_upgrade(
23352335
break
23362336
parent = parent.parent
23372337
except OSError:
2338+
# Best-effort cleanup: if a stale file cannot be removed (e.g. permission/race),
2339+
# continue upgrade flow without failing the command.
23382340
pass
23392341
if stale_removed:
23402342
console.print(f" Removed {stale_removed} stale file(s) from previous install")

0 commit comments

Comments
 (0)