From 0d1e382b37a3e54420dec453c1f9233bdfff458e Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 17 Aug 2023 10:21:42 +0800 Subject: [PATCH] [fix] fix typo - unknow -> unknown --- ballance_blender_plugin/NAMES_rename_system.py | 8 ++++---- ballance_blender_plugin/OBJS_add_floors.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ballance_blender_plugin/NAMES_rename_system.py b/ballance_blender_plugin/NAMES_rename_system.py index 5c6a703..ec9032f 100644 --- a/ballance_blender_plugin/NAMES_rename_system.py +++ b/ballance_blender_plugin/NAMES_rename_system.py @@ -83,7 +83,7 @@ class _RenameErrorType(): elif err_t == _RenameErrorType.INFO: return "INFO" else: - raise Exception("Unknow error type.") + raise Exception("Unknown error type.") class _RenameErrorItem(): def __init__(self, err_t, description): @@ -144,7 +144,7 @@ class _NameStandard(): elif std_str == "IMENGYU": return _NameStandard.IMENGYU else: - raise Exception("Unknow name standard.") + raise Exception("Unknown name standard.") class _NameInfoHelper(): def __init__(self, _basic_type): @@ -495,7 +495,7 @@ def _get_data(obj, standard, err_reporter: _RenameErrorReporter): elif standard == _NameStandard.CKGROUP: return _get_name_info_from_group(obj, err_reporter) else: - raise Exception("Unknow standard") + raise Exception("Unknown standard") def _set_data(obj, name_info, standard, err_reporter: _RenameErrorReporter): if standard == _NameStandard.YYC: @@ -505,7 +505,7 @@ def _set_data(obj, name_info, standard, err_reporter: _RenameErrorReporter): elif standard == _NameStandard.CKGROUP: return _set_for_group(obj, name_info, err_reporter) else: - raise Exception("Unknow standard") + raise Exception("Unknown standard") def _rename_core(source_std, dest_std): if source_std == dest_std: diff --git a/ballance_blender_plugin/OBJS_add_floors.py b/ballance_blender_plugin/OBJS_add_floors.py index ee47999..73ddaa4 100644 --- a/ballance_blender_plugin/OBJS_add_floors.py +++ b/ballance_blender_plugin/OBJS_add_floors.py @@ -134,7 +134,7 @@ class BALLANCE_OT_add_floors(bpy.types.Operator): self.use_3d_bottom), prefs_externalTexture) else: - raise Exception("Fatal error: unknow floor type.") + raise Exception("Fatal error: unknown floor type.") # normalization mesh objmesh.validate(clean_customdata=False)