From de311634fd36b168004327b74a012e3b73b11d0f Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Fri, 9 Feb 2024 16:51:18 -0500 Subject: [PATCH] include searched-for dt in ytd error msg --- .github/workflows/daily.yml | 2 +- njsp/ytd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 958ff756d9..dd402e0d8e 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -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 diff --git a/njsp/ytd.py b/njsp/ytd.py index 46154deda4..0446297d0b 100644 --- a/njsp/ytd.py +++ b/njsp/ytd.py @@ -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)