Marius Stanciu 6 лет назад
Родитель
Сommit
8665d4c90d
1 измененных файлов с 4 добавлено и 2 удалено
  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"))