Skip to content

Commit

Permalink
Do not error on logging if spec has expired
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Nov 30, 2023
1 parent b7165b2 commit 1006f2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usd_qtpy/prim_spec_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,9 @@ def delete_indexes(self, indexes):

with Sdf.ChangeBlock():
for spec in specs:
log.debug(f"Removing spec: %s", spec.path)
remove_spec(spec)
if spec and not spec.expired:
log.debug(f"Removing spec: %s", spec.path)
remove_spec(spec)
for deletable in deletables:
deletable.delete()
return True
Expand Down

0 comments on commit 1006f2f

Please sign in to comment.