Skip to content

Commit baa709b

Browse files
authored
Ignore errors in call to close from __del__ (#326)
1 parent f7877e3 commit baa709b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wgpu/gui/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ def __init__(self, *args, max_fps=30, vsync=True, **kwargs):
140140
self._err_hashes = {}
141141

142142
def __del__(self):
143-
self.close()
143+
try:
144+
self.close()
145+
except Exception:
146+
pass
144147

145148
def draw_frame(self):
146149
"""The function that gets called at each draw. You can implement

0 commit comments

Comments
 (0)