]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2260 from AntoJvlt/fix-load-languages-special-phrases
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 11 Apr 2021 21:09:45 +0000 (23:09 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 21:09:45 +0000 (23:09 +0200)
Fix default languages loading for special phrases import

nominatim/tools/special_phrases.py

index e2ec8ce4fa82a75ed8d72f52e1a82bf5afd3f1f8..3bb240ab88d9b0e90c36c714de89112395f2742b 100644 (file)
@@ -80,7 +80,7 @@ class SpecialPhrasesImporter():
             'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'hr', 'hu',
             'ia', 'is', 'it', 'ja', 'mk', 'nl', 'no', 'pl',
             'ps', 'pt', 'ru', 'sk', 'sl', 'sv', 'uk', 'vi']
-        return self.config.LANGUAGES.split(',') or default_languages
+        return self.config.LANGUAGES.split(',') if self.config.LANGUAGES else default_languages
 
     @staticmethod
     def _get_wiki_content(lang):