diff options
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/utils.py b/py/utils.py index dee7d42..2291a26 100644 --- a/py/utils.py +++ b/py/utils.py @@ -9,6 +9,8 @@ def load_api_key(): api_key = file.read() except Exception: pass + if not api_key: + raise Exception("Missing OpenAI API key") return api_key.strip() def make_request_options(options): |