- fixed a bug in Tools Database: due of not disconnecting the signals it created a race that was concluded into a RuntimeError exception (an dict changed size during iteration)

- Drilling Tool - working in adding tools auto-load from Tools DB
- some updates to the Excellon Object options
- Drilling Tool - manual add from Tools DB is working
This commit is contained in:
Marius Stanciu
2020-07-13 03:04:44 +03:00
parent f9e7c90407
commit 22d05935e8
6 changed files with 325 additions and 174 deletions

View File

@@ -8935,22 +8935,18 @@ class App(QtCore.QObject):
# How the object should be initialized
def obj_init(excellon_obj, app_obj):
try:
ret = excellon_obj.parse_file(filename=filename)
if ret == "fail":
log.debug("Excellon parsing failed.")
self.inform.emit('[ERROR_NOTCL] %s' %
_("This is not Excellon file."))
self.inform.emit('[ERROR_NOTCL] %s' % _("This is not Excellon file."))
return "fail"
except IOError:
app_obj.inform.emit('[ERROR_NOTCL] %s: %s' %
(_("Cannot open file"), filename))
app_obj.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Cannot open file"), filename))
log.debug("Could not open Excellon object.")
return "fail"
except Exception:
msg = '[ERROR_NOTCL] %s' % \
_("An internal error has occurred. See shell.\n")
msg = '[ERROR_NOTCL] %s' % _("An internal error has occurred. See shell.\n")
msg += traceback.format_exc()
app_obj.inform.emit(msg)
return "fail"