Skip to content

Commit 764114b

Browse files
authored
Change empty language string to None in tldr.py (#122)
1 parent 4a9a756 commit 764114b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_language_list():
160160
languages = os.environ.get('LANGUAGES', '').split(':')
161161
languages = list(map(
162162
lambda x: x.split('_')[0],
163-
filter(lambda x: x != 'C', languages)
163+
filter(lambda x: not (x == 'C' or x == ''), languages)
164164
))
165165
if DEFAULT_LANG is not None:
166166
try:

0 commit comments

Comments
 (0)