Skip to content

Commit

Permalink
fix: add default value for API_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat authored and Gaisberg committed Oct 21, 2024
1 parent 65a4aec commit bc6ff28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_version() -> str:

def generate_api_key():
"""Generate a secure API key of the specified length."""
API_KEY = os.getenv("API_KEY")
API_KEY = os.getenv("API_KEY", "")
if len(API_KEY) != 32:
logger.warning("env.API_KEY is not 32 characters long, generating a new one...")
characters = string.ascii_letters + string.digits
Expand Down

0 comments on commit bc6ff28

Please sign in to comment.