@@ -109,6 +109,7 @@ def _gh_auth_token() -> str | None:
109109 if result .returncode == 0 and result .stdout .strip ():
110110 return result .stdout .strip ()
111111 except (FileNotFoundError , subprocess .TimeoutExpired ):
112+ # Missing or slow gh CLI auth falls back to unauthenticated/public mode.
112113 pass
113114 return None
114115
@@ -3044,6 +3045,7 @@ def _run_list_initiatives_mode(args) -> None:
30443045 if name :
30453046 projects_by_name [name .lower ()] = proj
30463047 except (OSError , ValueError ):
3048+ # Initiative listing can proceed without portfolio-truth tier context.
30473049 pass
30483050
30493051 open_initiatives = [i for i in initiatives if i .closed_at is None ]
@@ -3076,6 +3078,7 @@ def _run_list_initiatives_mode(args) -> None:
30763078 days_left = (date .fromisoformat (initiative .deadline ) - date .today ()).days
30773079 status_detail = f"at-risk (deadline ≤ { days_left } d)"
30783080 except ValueError :
3081+ # Malformed deadlines keep the generic at-risk label.
30793082 pass
30803083 elif status == "on-track" :
30813084 status_detail = "on-track"
@@ -3598,6 +3601,7 @@ def _run_main_audit_cycle(args, config_inspection) -> None:
35983601 resumed_audits .append (_audit_from_dict (audit_dict ))
35993602 resumed_names .add (audit_dict .get ("metadata" , {}).get ("name" , "" ))
36003603 except Exception :
3604+ # Skip corrupt resume entries and continue with the rest.
36013605 pass
36023606 if resumed_audits :
36033607 print_info (f"Resumed { len (resumed_audits )} previously completed repo(s)" )
@@ -4968,6 +4972,7 @@ def _fresh_run(repo_path, meta, conn=None):
49684972 try :
49694973 _warehouse_conn .close ()
49704974 except Exception :
4975+ # Warehouse close failures are non-actionable during final cleanup.
49714976 pass
49724977 if _reconcile_diverged :
49734978 sys .exit (1 )
0 commit comments