diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index 92ed260110..da4b0f9778 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -157,7 +157,7 @@ class todo: func() FreeCAD.ActiveDocument.commitTransaction() except: - wrn = "[Draft.todo.commit] Unexpected error:", sys.exc_info()[0], "in ", f, "(", arg, ")" + wrn = "[Draft.todo.commit] Unexpected error:", sys.exc_info()[0], "in ", func FreeCAD.Console.PrintWarning (wrn) # restack Draft screen widgets after creation if hasattr(FreeCADGui,"Snapper"):