Cleanup: use specific exception types where appropriate

This commit is contained in:
Campbell Barton
2024-10-08 09:41:53 +11:00
parent 1a1e75c253
commit 3525b83c6b
5 changed files with 5 additions and 9 deletions

View File

@@ -152,7 +152,7 @@ def edge_face_count_dict(mesh):
key = edges[loops[i].edge_index].key
try:
face_edge_count[key] += 1
except:
except KeyError:
face_edge_count[key] = 1
return face_edge_count