+ Patch: 0002-starttls-support-via-SMTP_STARTTLS-provide-additiona.patch + Patch: 0001-Do-not-assume-there-is-a-SMTP_STARTTLS-configuration.patch - Backport fix for docs repo access grant + Patch: 0001-Fix-repotype-spelling.patch - Backport fix for visual bug on API docs formatting + Patch: 0001-api-fix-apidoc-format-on-api_view_issues_history_det.patch - Backport fix to changing pull mirror settings + Patch: 0001-Allow-editing-the-URL-a-project-is-mirrored-from.patch - Backport fix to add descriptions to API scopes + Patch: 0001-Show-the-ACL-name-in-addition-to-the-description-whe.patch - Backport fix to make heatmap UI functional again + Patch: 0001-Bring-back-JS-library-used-for-the-heatmap.patch - Backport fix for handling headers + Patch: 0001-Ensure-the-title-name-of-the-headers-are-strings.patch - Backport fix for burndown graph title + Patch: 0001-Fix-the-title-of-the-graph-showing-the-evolution-of-.patch - Backport fix for permissions on authorized_keys file + Patch: 0001-Make-sure-authorized_keys-file-has-mode-600.patch - Add patch to use whitenoise for rendering static assets + Patch: 0101-Use-WhiteNoise-to-serve-static-assets-for-the-Pagure.patch - Refresh default configuration patch + Patch: pagure-5.0-default-example-cfg.patch OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/pagure?expand=0&rev=39
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From a5a0e792e8491f416d3188c42861ba0c62e94a79 Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Yves Chibon <pingou@pingoured.fr>
|
|
Date: Wed, 3 Jun 2020 20:19:48 +0200
|
|
Subject: [PATCH] Do not assume there is a SMTP_STARTTLS configuration key set
|
|
|
|
This is a new key that was introduced in 5.10.0 and that isn't set
|
|
in the default_config. So we cannot assume it is defined and thus
|
|
the code needs to not make this assumption either.
|
|
|
|
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
|
|
---
|
|
pagure/lib/notify.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py
|
|
index 2c4ee30f..0c124db9 100644
|
|
--- a/pagure/lib/notify.py
|
|
+++ b/pagure/lib/notify.py
|
|
@@ -506,7 +506,7 @@ def send_email(
|
|
pagure_config["SMTP_PORT"],
|
|
)
|
|
|
|
- if pagure_config["SMTP_STARTTLS"]:
|
|
+ if pagure_config.get("SMTP_STARTTLS"):
|
|
context = ssl.create_default_context()
|
|
keyfile = pagure_config.get("SMTP_KEYFILE") or None
|
|
certfile = pagure_config.get("SMTP_CERTFILE") or None
|
|
--
|
|
2.26.2
|
|
|