Svngoku commited on
Commit
658b2d4
1 Parent(s): 8fc387f

Update flores200_codes.py

Browse files
Files changed (1) hide show
  1. flores200_codes.py +11 -4
flores200_codes.py CHANGED
@@ -44,8 +44,15 @@ Yoruba yor_Latn
44
  Zulu zul_Latn'''
45
 
46
  codes_as_string = codes_as_string.split('\n')
47
-
48
  flores_codes = {}
49
- for code in codes_as_string:
50
- lang, lang_code = code.split('\t')
51
- flores_codes[lang] = lang_code
 
 
 
 
 
 
 
 
 
44
  Zulu zul_Latn'''
45
 
46
  codes_as_string = codes_as_string.split('\n')
 
47
  flores_codes = {}
48
+
49
+ try:
50
+ for code in codes_as_string:
51
+ lang, lang_code = code.split('\t')
52
+ flores_codes[lang] = lang_code
53
+ except ValueError:
54
+ lang = None
55
+ lang_code = None
56
+
57
+
58
+