16
1
Fork 0

notify script: reuse already defined strings

master
Pierre-Louis Bonicoli 7 months ago
parent 7aeee0a4ae
commit f95b79375f
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
  1. 4
      notify_owners.py

@ -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:

Loading…
Cancel
Save