Skip to content
Permalink
Browse files
Revert "Don't crash when translating untranslated strings"
This reverts commit b61f406.
  • Loading branch information
Kwpolska committed May 15, 2017
1 parent 44e4111 commit 8bd9cb52af5e854729e1c27c7ee51dec6bab2260
Showing with 0 additions and 6 deletions.
  1. +0 −2 CHANGES.txt
  2. +0 −4 nikola/utils.py
@@ -10,8 +10,6 @@ Features
Bugfixes
--------

* Don't crash when translating untranslated messages.

New in v7.8.5
=============

@@ -265,10 +265,6 @@ def __call__(self, key, lang=None):
"""When called as a function, take an optional lang and return self[lang][key]."""
if lang is None:
lang = LocaleBorg().current_lang
if lang not in self:
LOGGER.warning('Unknown language %s', lang)
elif key not in self[lang]:
LOGGER.warning('Unknown message %s', key)
return self[lang][key]


0 comments on commit 8bd9cb5

Please sign in to comment.