fix(triage_rollout_enact): require tz on --simulate-now to avoid TypeError

Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
Cursor Agent 2026-05-26 04:01:04 +00:00
parent ead3f1466b
commit 164dbb72a8
No known key found for this signature in database

View file

@ -466,6 +466,11 @@ def main() -> int:
current_time = dt.datetime.fromisoformat(
args.simulate_now.replace("Z", "+00:00")
)
if current_time.tzinfo is None:
parser.error(
"--simulate-now must include a timezone offset "
"(e.g. '2026-06-02T09:00:00Z' or '2026-06-02T09:00:00+00:00')."
)
else:
offset = (
args.simulate_future_hours