- small fix in Milling Plugin

This commit is contained in:
Marius Stanciu
2021-09-06 02:01:56 +03:00
committed by Marius Stanciu
parent b4ef812384
commit 239cf88a48

View File

@@ -839,7 +839,7 @@ class ToolMilling(AppTool, Excellon):
self.target_obj = self.app.collection.get_by_name(self.obj_name) self.target_obj = self.app.collection.get_by_name(self.obj_name)
except Exception as err: except Exception as err:
self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Could not retrieve object"), str(self.obj_name))) self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Could not retrieve object"), str(self.obj_name)))
self.app.log("ToolMilling.build_ui() getting the object --> %s" % str(err)) self.app.log.error("ToolMilling.build_ui() getting the object --> %s" % str(err))
self.ui_disconnect() self.ui_disconnect()
self.ui_connect() self.ui_connect()
return return
@@ -852,7 +852,7 @@ class ToolMilling(AppTool, Excellon):
self.build_ui_exc() self.build_ui_exc()
except Exception as err: except Exception as err:
self.app.inform.emit('[ERROR_NOTCL] %s' % _("Could not build the Plugin UI")) self.app.inform.emit('[ERROR_NOTCL] %s' % _("Could not build the Plugin UI"))
self.app.log("ToolMilling.build_ui() building the UI --> %s" % str(err)) self.app.log.error("ToolMilling.build_ui() building the UI --> %s" % str(err))
self.ui_connect() self.ui_connect()
return return