diff --git a/.github/workflows/data-processing.yml b/.github/workflows/data-processing.yml index 1ff8f119998..d9dacebc5af 100644 --- a/.github/workflows/data-processing.yml +++ b/.github/workflows/data-processing.yml @@ -68,7 +68,7 @@ jobs: continue-on-error: true # Continue even if this step fails run: python3 scripts/gs-cite/google_scholar.py env: - SERPAI: ${{ secrets.SERPAPI }} + SERPAPI: ${{ secrets.SERPAPI }} - name: Upload data artifact uses: actions/upload-artifact@v4 diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index 225a280b5ac..5ab5a999289 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -6,7 +6,7 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") -if api_key is None: +if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.") # Define the request URL