File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ def parse(self) -> ParatextProjectSettings:
9494 parent_guid = None
9595 if translation_info_setting is not None :
9696 translation_info_setting_parts = translation_info_setting .split (":" )
97- translation_type = translation_info_setting_parts [0 ]
98- parent_name = translation_info_setting_parts [1 ] if translation_info_setting_parts [1 ] != "" else None
99- parent_guid = translation_info_setting_parts [2 ] if translation_info_setting_parts [2 ] != "" else None
97+ if len (translation_info_setting_parts ) == 3 :
98+ translation_type = translation_info_setting_parts [0 ]
99+ parent_name = translation_info_setting_parts [1 ] if translation_info_setting_parts [1 ] != "" else None
100+ parent_guid = translation_info_setting_parts [2 ] if translation_info_setting_parts [2 ] != "" else None
100101
101102 settings = ParatextProjectSettings (
102103 guid ,
You can’t perform that action at this time.
0 commit comments