Skip to content

Commit

Permalink
#348 - make exceptions capitalized
Browse files Browse the repository at this point in the history
  • Loading branch information
HENDRIX-ZT2 committed Aug 4, 2023
1 parent f5cdd0c commit 8533e47
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions generated/base_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def read_fields(cls, stream, instance):
if "version" in f_name:
setattr(instance.context, f_name, getattr(instance, f_name))
except:
logging.exception(f"failed reading field '{f_name}' on type {cls}")
logging.exception(f"Failed reading field '{f_name}' on type {cls}")
raise

@classmethod
Expand All @@ -214,7 +214,7 @@ def write_fields(cls, stream, instance):
try:
f_type.to_stream(getattr(instance, f_name), stream, instance.context, *arguments)
except:
logging.error(f"failed writing field '{f_name}' on type {cls}")
logging.error(f"Failed writing field '{f_name}' on type {cls}")
raise

def reset_field(self, target_f_name):
Expand Down
2 changes: 1 addition & 1 deletion generated/formats/ovl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def game(self):
@game.setter
def game(self, game_name):
set_game(self, game_name)

def clear(self):
self.num_archives = 0
self.reset_field("archives")
Expand Down
4 changes: 2 additions & 2 deletions plugin/import_ms2.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def load(filepath="", use_custom_normals=False, mirror_mesh=False):
b_me["unk_f1"] = float(mesh.unk_floats[1])
b_me["stream"] = mesh.stream_info.pool_index
except:
logging.exception("setting unks failed")
logging.exception("Setting unks failed")
try:
mesh_dict[m_ob.mesh_index] = b_me
import_mesh_layers(b_me, mesh, use_custom_normals, m_ob.material.name)
Expand Down Expand Up @@ -108,7 +108,7 @@ def load(filepath="", use_custom_normals=False, mirror_mesh=False):
append_bisect_modifier(b_ob)
ob_postpro(b_ob, mirror_mesh, use_custom_normals)
except:
logging.exception("some mesh data failed")
logging.exception("Some mesh data failed")
ob_dict[m_ob.mesh_index] = b_ob
# from plugin.modules_import.tangents import visualize_tangents
# ob2, me2 = visualize_tangents(b_ob.name, mesh.vertices, mesh.normals, mesh.tangents)
Expand Down
2 changes: 1 addition & 1 deletion plugin/modules_import/armature.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def import_armature(scene, model_info, b_bone_names):
try:
import_joints(scene, b_armature_obj, bone_info, b_bone_names, corrector)
except:
logging.exception("Importing joints failed...")
logging.exception("Importing joints failed")
return b_armature_obj


Expand Down
4 changes: 2 additions & 2 deletions source/base_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def read_fields(cls, stream, instance):
if "version" in f_name:
setattr(instance.context, f_name, getattr(instance, f_name))
except:
logging.exception(f"failed reading field '{f_name}' on type {cls}")
logging.exception(f"Failed reading field '{f_name}' on type {cls}")
raise

@classmethod
Expand All @@ -214,7 +214,7 @@ def write_fields(cls, stream, instance):
try:
f_type.to_stream(getattr(instance, f_name), stream, instance.context, *arguments)
except:
logging.error(f"failed writing field '{f_name}' on type {cls}")
logging.error(f"Failed writing field '{f_name}' on type {cls}")
raise

def reset_field(self, target_f_name):
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
72cce9955 - Fri Aug 4 22:34:55 2023 +0200
f5cdd0c96 - Fri Aug 4 22:43:21 2023 +0200

0 comments on commit 8533e47

Please sign in to comment.