Skip to content

Commit 6417731

Browse files
authored
check whether api_key is null at the entrypoint.py
1 parent b2bd598 commit 6417731

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

entrypoint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def main() -> None:
2929
readme_file = pathlib.Path(readme_file_str)
3030
assert readme_file.exists(), 'No README file'
3131

32-
api_key = os.environ['INPUT_API-KEY']
32+
api_key = os.environ['INPUT_API-KEY'].strip()
33+
34+
assert api_key, "Please check API-KEY"
3335

3436
explanation_in = os.environ['INPUT_EXPLANATION-IN']
3537

0 commit comments

Comments
 (0)