Fixed typo and py3 exception printing

This commit is contained in:
Markus Lampert
2019-07-02 21:03:28 -07:00
parent ba6a6d63ee
commit d6a20be999
2 changed files with 2 additions and 2 deletions

View File

@@ -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):

View File

@@ -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()