mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
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:
parent
ead3f1466b
commit
164dbb72a8
1 changed files with 5 additions and 0 deletions
5
.github/scripts/triage_rollout_enact.py
vendored
5
.github/scripts/triage_rollout_enact.py
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue