mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-07-21 17:28:11 +00:00
fix: bare except (#1159)
Bare `except:` catches SystemExit and KeyboardInterrupt, which can: - Mask Ctrl+C handling during long optimization runs - Hide critical system signals - Make debugging harder Replacement by `except Exception:` preserves the same error handling while respecting system-level exceptions. Co-authored-by: Milo @KeloYuan Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ def akkudoktoreos_base_branch():
|
||||
# Get the current branch
|
||||
try:
|
||||
current_branch = repo.active_branch.name
|
||||
except:
|
||||
except Exception:
|
||||
# Maybe detached branch that has no name
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user