From 06c3d6ac11b2fd7e3f122aa2c556e7461357c785 Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sat, 5 Oct 2019 10:41:09 +0200 Subject: [PATCH] r-strips the configured URL unconditionally --- isso/ext/notifications.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index 692894a..07020b0 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -79,8 +79,7 @@ class SMTP(object): self.public_endpoint = isso.conf.get("server", "public-endpoint") # rstrips potential trailing '/', without having to `repr` the `local` object. if self.public_endpoint: - if self.public_endpoint.endswith('/'): - self.public_endpoint = self.public_endpoint.rstrip('/') + self.public_endpoint = self.public_endpoint.rstrip('/') else: self.public_endpoint = local("host")