Fixed typo and py3 exception printing
This commit is contained in:
@@ -392,7 +392,7 @@ class ObjectJob:
|
||||
@classmethod
|
||||
def baseCandidates(cls):
|
||||
'''Answer all objects in the current document which could serve as a Base for a job.'''
|
||||
return sorted([obj for obj in FreeCAD.ActiveDocuemnt.Objects if cls.isBaseCandidate(obj)], key=lambda o: o.Label)
|
||||
return sorted([obj for obj in FreeCAD.ActiveDocument.Objects if cls.isBaseCandidate(obj)], key=lambda o: o.Label)
|
||||
|
||||
@classmethod
|
||||
def isBaseCandidate(cls, obj):
|
||||
|
||||
@@ -1313,7 +1313,7 @@ def Create(base, template=None):
|
||||
return obj
|
||||
except Exception as exc: # pylint: disable=broad-except
|
||||
PathLog.error(exc)
|
||||
traceback.print_exc(exc)
|
||||
traceback.print_exc()
|
||||
FreeCAD.ActiveDocument.abortTransaction()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user