Files
gpt-pilot/pilot/helpers/exceptions/ApiKeyNotDefinedError.py
2023-10-04 16:09:41 +11:00

5 lines
181 B
Python

class ApiKeyNotDefinedError(Exception):
def __init__(self, env_key: str):
self.env_key = env_key
super().__init__(f"API Key has not been configured: {env_key}")