Skip to content

Commit

Permalink
include searched-for dt in ytd error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 9, 2024
1 parent 3334ef1 commit de31163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
aws s3api put-object-acl --bucket nj-crashes --key nj_crashes.db --acl public-read
aws s3 cp data/crashes.pqt s3://nj-crashes/data/crashes.parquet
aws s3api put-object-acl --bucket nj-crashes --key data/crashes.parquet --acl public-read
- name: Compute update_plots
- name: Compute plot_data.changed
id: plot_data
if: (github.event.schedule || inputs.update_plots) && (steps.update_pqts_sha.outputs.sha || !inputs.short_circuit)
run: echo "changed=1" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion njsp/ytd.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def oldest_commit_rundate_since(dt: str) -> Tuple[Commit, str]:
try:
commit = next(commits)
except StopIteration:
raise RuntimeError(f"Ran out of commits after {len(shas)}: {','.join(shas)}")
raise RuntimeError(f"Ran out of commits after {len(shas)}, looking for {dt}: {','.join(shas)}")
tree = commit.tree
short_sha = commit.hexsha[:7]
shas.append(short_sha)
Expand Down

0 comments on commit de31163

Please sign in to comment.