Skip to content

Commit c17a939

Browse files
authored
Fix call to super().__del__ (#74)
1 parent bc435e4 commit c17a939

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rendercanvas/glfw.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ def __del__(self):
164164
self.glfw.terminate()
165165
except Exception:
166166
pass
167-
super().__del__()
167+
try:
168+
super().__del__()
169+
except Exception:
170+
pass # object has no __del__
168171

169172

170173
class GlfwRenderCanvas(BaseRenderCanvas):

0 commit comments

Comments
 (0)