Explorar o código

- added a debug message

Marius Stanciu %!s(int64=6) %!d(string=hai) anos
pai
achega
8665d4c90d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      FlatCAMApp.py

+ 4 - 2
FlatCAMApp.py

@@ -7162,8 +7162,10 @@ class App(QtCore.QObject):
                             try:
                                 obj_active.annotation.clear(update=True)
                                 obj_active.annotation.enabled = False
-                            except AttributeError:
-                                pass
+                            except AttributeError as e:
+                                log.debug(
+                                    "App.on_delete() --> delete annotations on a FlatCAMCNCJob object. %s" % str(e)
+                                )
                         self.delete_first_selected()
 
                     self.inform.emit('%s...' % _("Object(s) deleted"))