Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_lang(lang):
if lang in {'multi', 'multilingual'}:
return 'multi'
if lang in wikicode:
return lang
try:
return to_wikicode[lang]
except:
raise ValueError("Unknown language identifier: " + lang)