From 1667c4d9f671dee92c3d3ca57da7de46a2c5166e Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 25 Feb 2021 17:25:41 -0600 Subject: [PATCH] [Part] Fix signature of TempoVis dummy function If the import of TempoVis fails, TaskAttachmentEditor creates s dummy function to replace the real TempoVis function. That function's signature did not match the real TempoVis. Caught by LGTM. --- src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index 270d894c55..1b6a6edae6 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -33,7 +33,7 @@ try: from Show import TempoVis from Show.DepGraphTools import getAllDependent except ImportError as err: - def TempoVis(doc): + def TempoVis(doc,tag): return None def getAllDependent(feature): return []