feat: Add Nomad deployment configuration and update email handling
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
This commit is contained in:
5
main.py
5
main.py
@@ -42,6 +42,11 @@ class FinanceEmailer:
|
||||
self.gmail_app_password = os.environ.get('GMAIL_APP_PASSWORD')
|
||||
self.recipient_email = os.environ.get('RECIPIENT_EMAIL')
|
||||
|
||||
if self.recipient_email:
|
||||
# Clean up and normalize email list
|
||||
recipients = [e.strip() for e in self.recipient_email.split(',') if e.strip()]
|
||||
self.recipient_email = ", ".join(recipients)
|
||||
|
||||
if not all([self.gmail_user, self.gmail_app_password, self.recipient_email]):
|
||||
raise ValueError("Missing required environment variables")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user