Fix AttributeError on deleting corrupt dressup

This commit is contained in:
Keilin Bickar
2021-01-17 22:04:26 -05:00
committed by GitHub
parent bf221af686
commit ab8a4a62a9

View File

@@ -418,7 +418,7 @@ class PathDressupTagViewProvider:
'''this makes sure that the base operation is added back to the job and visible'''
# pylint: disable=unused-argument
PathLog.track()
if self.obj.Base.ViewObject:
if self.obj.Base and self.obj.Base.ViewObject:
self.obj.Base.ViewObject.Visibility = True
job = PathUtils.findParentJob(self.obj)
if arg1.Object and arg1.Object.Base and job: