gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www_shared] branch master updated: skip over None in tuple


From: gnunet
Subject: [www_shared] branch master updated: skip over None in tuple
Date: Tue, 01 Dec 2020 23:02:03 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository www_shared.

The following commit(s) were added to refs/heads/master by this push:
     new 4ae188a  skip over None in tuple
4ae188a is described below

commit 4ae188ae658793c6cfddf60fdb5a563e590f9cfa
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Dec 1 23:01:53 2020 +0100

    skip over None in tuple
---
 i18nfix.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/i18nfix.py b/i18nfix.py
index 835e0f1..b00eef3 100644
--- a/i18nfix.py
+++ b/i18nfix.py
@@ -17,6 +17,8 @@ import jinja2.ext
 
 
 def normalize_str(message):
+    if not isinstance(message, str):
+        return message
     message = message.strip()
     # collapse whitespaces (including newlines) into one space.
     message = re.sub("\s+", " ", message)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]