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:
@@ -40,7 +40,7 @@ import PySide.QtCore as QtCore
|
||||
|
||||
import FreeCAD as App
|
||||
from draftutils import params
|
||||
from draftutils.messages import _msg, _wrn, _err, _log
|
||||
from draftutils.messages import _wrn, _err, _log
|
||||
from draftutils.translate import translate
|
||||
|
||||
# TODO: move the functions that require the graphical interface
|
||||
@@ -1029,8 +1029,7 @@ def find_doc(doc=None):
|
||||
try:
|
||||
doc = App.getDocument(doc)
|
||||
except NameError:
|
||||
_msg("document: {}".format(doc))
|
||||
_err(translate("draft", "Wrong input: unknown document."))
|
||||
_err(translate("draft", "Wrong input: unknown document {}").format(doc))
|
||||
return not FOUND, None
|
||||
|
||||
return FOUND, doc
|
||||
|
||||
Reference in New Issue
Block a user