[fix] fix typo

- unknow -> unknown
This commit is contained in:
yyc12345 2023-08-17 10:21:42 +08:00
parent 12d5f8c236
commit 0d1e382b37
2 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ class _RenameErrorType():
elif err_t == _RenameErrorType.INFO: elif err_t == _RenameErrorType.INFO:
return "INFO" return "INFO"
else: else:
raise Exception("Unknow error type.") raise Exception("Unknown error type.")
class _RenameErrorItem(): class _RenameErrorItem():
def __init__(self, err_t, description): def __init__(self, err_t, description):
@ -144,7 +144,7 @@ class _NameStandard():
elif std_str == "IMENGYU": elif std_str == "IMENGYU":
return _NameStandard.IMENGYU return _NameStandard.IMENGYU
else: else:
raise Exception("Unknow name standard.") raise Exception("Unknown name standard.")
class _NameInfoHelper(): class _NameInfoHelper():
def __init__(self, _basic_type): def __init__(self, _basic_type):
@ -495,7 +495,7 @@ def _get_data(obj, standard, err_reporter: _RenameErrorReporter):
elif standard == _NameStandard.CKGROUP: elif standard == _NameStandard.CKGROUP:
return _get_name_info_from_group(obj, err_reporter) return _get_name_info_from_group(obj, err_reporter)
else: else:
raise Exception("Unknow standard") raise Exception("Unknown standard")
def _set_data(obj, name_info, standard, err_reporter: _RenameErrorReporter): def _set_data(obj, name_info, standard, err_reporter: _RenameErrorReporter):
if standard == _NameStandard.YYC: if standard == _NameStandard.YYC:
@ -505,7 +505,7 @@ def _set_data(obj, name_info, standard, err_reporter: _RenameErrorReporter):
elif standard == _NameStandard.CKGROUP: elif standard == _NameStandard.CKGROUP:
return _set_for_group(obj, name_info, err_reporter) return _set_for_group(obj, name_info, err_reporter)
else: else:
raise Exception("Unknow standard") raise Exception("Unknown standard")
def _rename_core(source_std, dest_std): def _rename_core(source_std, dest_std):
if source_std == dest_std: if source_std == dest_std:

View File

@ -134,7 +134,7 @@ class BALLANCE_OT_add_floors(bpy.types.Operator):
self.use_3d_bottom), self.use_3d_bottom),
prefs_externalTexture) prefs_externalTexture)
else: else:
raise Exception("Fatal error: unknow floor type.") raise Exception("Fatal error: unknown floor type.")
# normalization mesh # normalization mesh
objmesh.validate(clean_customdata=False) objmesh.validate(clean_customdata=False)