Skip to content

Commit ae222ed

Browse files
Correct check for SERPAPI key (#300)
* Correct check for key * Update google_scholar.py * Update google_scholar.py * Update google_scholar.py * Fix var name spelling * Update google_scholar.py
1 parent 4f19e10 commit ae222ed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/data-processing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
continue-on-error: true # Continue even if this step fails
6969
run: python3 scripts/gs-cite/google_scholar.py
7070
env:
71-
SERPAI: ${{ secrets.SERPAPI }}
71+
SERPAPI: ${{ secrets.SERPAPI }}
7272

7373
- name: Upload data artifact
7474
uses: actions/upload-artifact@v4

scripts/gs-cite/google_scholar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Load API key from environment variable
77
api_key = os.getenv("SERPAPI")
88

9-
if api_key is None:
9+
if not api_key:
1010
raise ValueError("API key is missing. Please set the SERPAPI environment variable.")
1111

1212
# Define the request URL

0 commit comments

Comments
 (0)