Skip to content

Commit

Permalink
Suppress AttributeError in - mouseDoubleDown:
Browse files Browse the repository at this point in the history
I cannot reproduce it and - [GlyphsPathPlugin mouseDoubleDown:] reliably exists among versions but anyway.
  • Loading branch information
takaakifuji committed Apr 30, 2024
1 parent cdda640 commit 55cf9f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file modified CJKAnchorPlacement.glyphsTool/Contents/CodeResources
Binary file not shown.
Binary file modified CJKAnchorPlacement.glyphsTool/Contents/MacOS/plugin
Binary file not shown.
7 changes: 5 additions & 2 deletions CJKAnchorPlacement.glyphsTool/Contents/Resources/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ def mouseDoubleDown_(self, event):
elif anchor_name == 'BSB':
self.BSBValue = distance_from_edge
return
super(CJKAnchorPlacementTool, self).mouseDoubleDown_(event)

try:
super(CJKAnchorPlacementTool, self).mouseDoubleDown_(event)
except AttributeError as e:
LogError(e) # Some encounter AttributeError while I cannot reproduce it.

@LSBValue.setter
def LSBValue(self, value):
if self._LSBValue != value:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</data>
<key>Resources/plugin.py</key>
<data>
uBZM8UQnplFPta0i8hON3J/It/k=
6aebAw4SCkI1otsD6PlLg2/Qo5U=
</data>
<key>Resources/toolbar.ai</key>
<data>
Expand Down Expand Up @@ -53,11 +53,11 @@
<dict>
<key>hash</key>
<data>
uBZM8UQnplFPta0i8hON3J/It/k=
6aebAw4SCkI1otsD6PlLg2/Qo5U=
</data>
<key>hash2</key>
<data>
lX3DfAJUeJzJwdvkXwmDBw9ZyvRSsaTfyIdlQqgEWuY=
eHbTN5WCeXrUsewUeJTCq541mRqS/XkcpaKGnWt1wrw=
</data>
</dict>
<key>Resources/toolbar.ai</key>
Expand Down

0 comments on commit 55cf9f9

Please sign in to comment.