Eliminate many "doing what you told me to" messages
These messages were perhaps originally intended as a debuggin aid but now add clutter to the output panes. Remaining messges are mostly the result of methods to display attributes of an object (which one could call from the Python console) or actually provide some information which would not be obvious from the circumstances
This commit is contained in:
@@ -38,7 +38,7 @@ import FreeCAD as App
|
||||
import draftutils.utils as utils
|
||||
|
||||
from draftutils.translate import translate
|
||||
from draftutils.messages import _msg, _err
|
||||
from draftutils.messages import _err
|
||||
|
||||
|
||||
def is_group(obj):
|
||||
@@ -128,8 +128,7 @@ def ungroup(obj):
|
||||
|
||||
found, obj = utils.find_object(obj, doc=App.activeDocument())
|
||||
if not found:
|
||||
_msg("obj: {}".format(obj_str))
|
||||
_err(translate("draft", "Wrong input: object not in document."))
|
||||
_err(translate("draft", "Wrong input: object {} not in document.").format(obj_str))
|
||||
return None
|
||||
|
||||
doc = obj.Document
|
||||
|
||||
Reference in New Issue
Block a user