Merge pull request #613 from jphdotam/fix_referenceerror
Prevent ReferenceErrors on cleanup
This commit is contained in:
commit
6b06922da2
@ -320,7 +320,7 @@ def cleanup():
|
||||
'are properly called before app shutdown (%s)\n' % (o,))
|
||||
|
||||
s.addItem(o)
|
||||
except RuntimeError: ## occurs if a python wrapper no longer has its underlying C++ object
|
||||
except (RuntimeError, ReferenceError): ## occurs if a python wrapper no longer has its underlying C++ object
|
||||
continue
|
||||
_cleanupCalled = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user