054a5e16601ecb4c5c020ec1f618cd9de7804df7 — emerson 25 days ago 880c67d
yikes
1 files changed, 2 insertions(+), 2 deletions(-)

M dronebl/dronebl_check_tickets.py
M dronebl/dronebl_check_tickets.py => dronebl/dronebl_check_tickets.py +2 -2
@@ 31,7 31,7 @@ def send_active_email(ticket, details):
 	if config.get("email_bcc"):
 		data["bcc"] = config["email_bcc"]
 
-	requests.post(f"https://api.mailgun.net/v3/config['mg_domain_name']/messages",
+	requests.post(f"https://api.mailgun.net/v3/{config['mg_domain_name']}/messages",
 			auth=auth_api, data=data)
 
 def send_inactive_email(ticket):


@@ 45,7 45,7 @@ def send_inactive_email(ticket):
 	if config.get("email_bcc"):
 		data["bcc"] = config["email_bcc"]
 
-	requests.post(f"https://api.mailgun.net/v3/config['mg_domain_name']/messages",
+	requests.post(f"https://api.mailgun.net/v3/{config['mg_domain_name']}/messages",
 			auth=auth_api, data=data)
 
 def remove_dronebl_entries(entries):