[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Load default locale



commit 08bfed35889ad59fe99b4a5646e229439ad976ce
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Wed May 22 19:27:17 2019 +0200

    Load default locale
---
 gettor/services/email/sendmail.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gettor/services/email/sendmail.py b/gettor/services/email/sendmail.py
index a350909..28d9b2d 100644
--- a/gettor/services/email/sendmail.py
+++ b/gettor/services/email/sendmail.py
@@ -160,6 +160,10 @@ class Sendmail(object):
                     date = request[4]
                     platform = request[2]
                     language = request[3]
+
+                    if not language:
+                        language = 'en'
+
                     strings.load_strings(language)
 
                     log.info("Getting links for {}.".format(platform))

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits