commit 08bfed35889ad59fe99b4a5646e229439ad976ce Author: hiro hiro@torproject.org 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))