24
1
Fork 0

notify script: reuse already defined strings

This commit is contained in:
Pierre-Louis Bonicoli 2022-02-26 01:13:40 +01:00
parent 7aeee0a4ae
commit f95b79375f
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ def notify(smtp, repositories, agir_key, fetch_mail):
email["Subject"] = subject
email["From"] = FORGE_ML
email["To"] = user_email
email["CC"] = "forge-support@chapril.org"
email["CC"] = FORGE_ML
smtp.send_message(email)
logging.debug("Mail to '%s' (%s) sent for %s.", user, user_email, url)
@ -181,7 +181,7 @@ def main():
# with smtplib.smtp_ssl(server, 465, context=context) as smtp:
# smtp.login(login, password)
agir_key = getpass.getpass(prompt="Type agir.april.org API key:")
agir_key = getpass.getpass(prompt=f"Type {AGIR_URL} API key:")
repositories = fileinput.input()
with smtplib.SMTP("127.0.0.1", 25) as smtp: