Skip to content

Commit

Permalink
catch exception when index is out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Apr 23, 2024
1 parent 59e3e69 commit c26ab0e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -176,10 +176,10 @@ def compatibleProportions(self, glyph, pathIndex, nodeIndex, originalHypot):
for masterId in self.masterIds:
layer = glyph.layers[masterId]
# Find the current base node and its surrounding nodes
#try:
# currentPath = layer.shapes[pathIndex]
#except:
currentPath = layer.paths[pathIndex]
try:
currentPath = layer.paths[pathIndex]
except:
continue
if currentPath:
currentNode = currentPath.nodes[nodeIndex]
if currentNode:
Expand Down

0 comments on commit c26ab0e

Please sign in to comment.