Navigation Menu

Skip to content

Commit

Permalink
Revert "Don't crash when translating untranslated strings"
Browse files Browse the repository at this point in the history
This reverts commit b61f406.
  • Loading branch information
Kwpolska committed May 15, 2017
1 parent 44e4111 commit 8bd9cb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CHANGES.txt
Expand Up @@ -10,8 +10,6 @@ Features
Bugfixes
--------

* Don't crash when translating untranslated messages.

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

Expand Down
4 changes: 0 additions & 4 deletions nikola/utils.py
Expand Up @@ -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]


Expand Down

0 comments on commit 8bd9cb5

Please sign in to comment.