Skip to content

Commit

Permalink
adding a message before loading the plugin with a try except
Browse files Browse the repository at this point in the history
  • Loading branch information
easyw committed Nov 29, 2021
1 parent 0cc3e58 commit 3fcfd4e
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 18 deletions.
8 changes: 6 additions & 2 deletions AnnularChecker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .annular_checker import annular_check
annular_check().register()
import wx
try:
from .annular_checker import annular_check
annular_check().register()
except Exception as e:
wx.LogMessage('annular checker plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion AnnularChecker/annular_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

global mm_ius, DRL_EXTRA, AR_SET, AR_SET_V, DRL_EXTRA_ius, MIN_AR_SIZE, MIN_AR_SIZE_V, found_violations, LogMsg, ___version___

___version___="1.7.1"
___version___="1.7.2"

#wx.LogMessage("My message")
mm_ius = 1000000.0
Expand Down
8 changes: 6 additions & 2 deletions FabricationPositions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .fabrication_positions import generatePOS
generatePOS().register()
import wx
try:
from .fabrication_positions import generatePOS
generatePOS().register()
except Exception as e:
wx.LogMessage('fabrication positions plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion FabricationPositions/fabrication_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#pcbnew.GetWizardsBackTrace()


___version___="1.2.7"
___version___="1.2.8"
#wx.LogMessage("My message")
#mm_ius = 1000000.0

Expand Down
8 changes: 6 additions & 2 deletions MoveToLayer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .move_to_layer import move_to_draw_layer
move_to_draw_layer().register()
import wx
try:
from .move_to_layer import move_to_draw_layer
move_to_draw_layer().register()
except Exception as e:
wx.LogMessage('move to layer plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion MoveToLayer/move_to_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import base64
from wx.lib.embeddedimage import PyEmbeddedImage
import os
___version___="1.2.4"
___version___="1.2.5"

from . import Move2LayerDlg

Expand Down
8 changes: 6 additions & 2 deletions PcbToDxf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .action_menu_pcb2dxf import pcb2dxf
pcb2dxf().register()
import wx
try:
from .action_menu_pcb2dxf import pcb2dxf
pcb2dxf().register()
except Exception as e:
wx.LogMessage('pcb to dxf plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion PcbToDxf/action_menu_pcb2dxf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

script_name="kicadpcb2dxf"
__author_script__="easyw Maurice"
___version___="3.8.2"
___version___="3.8.3"

from contextlib import contextmanager

Expand Down
8 changes: 6 additions & 2 deletions Snap2Grid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .snap2grid import snap_to_grid
snap_to_grid().register()
import wx
try:
from .snap2grid import snap_to_grid
snap_to_grid().register()
except Exception as e:
wx.LogMessage('snap to grid plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion Snap2Grid/snap2grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
### plugins errors
#import pcbnew;pcbnew.GetWizardsBackTrace()

__version__ = '1.2.1'
__version__ = '1.2.2'
import sys, os
import pcbnew
import datetime
Expand Down
8 changes: 6 additions & 2 deletions checking3Dmodels/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .model3d_list import checkMissing3DM
checkMissing3DM().register()
import wx
try:
from .model3d_list import checkMissing3DM
checkMissing3DM().register()
except Exception as e:
wx.LogMessage('3D missing models checker plugin error\n'+str(e))
2 changes: 1 addition & 1 deletion checking3Dmodels/model3d_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#pcbnew.GetWizardsBackTrace()


___version___="1.1.3"
___version___="1.1.4"
#wx.LogMessage("My message")
#mm_ius = 1000000.0

Expand Down

0 comments on commit 3fcfd4e

Please sign in to comment.