changeset 17:0c8d787bc7e1

... but not paranoid enough.
author David Barts <n5jrn@me.com>
date Fri, 27 Dec 2019 15:53:22 -0800
parents 61772bf1f77c
children b2dab0667ec2
files runes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runes.py	Fri Dec 27 13:37:47 2019 -0800
+++ b/runes.py	Fri Dec 27 15:53:22 2019 -0800
@@ -102,7 +102,7 @@
 
     def __del__(self):
         # Paranoid
-        if isinstance(self.buffer, memoryview):
+        if hasattr(self, 'buffer') and isinstance(self.buffer, memoryview):
             self.buffer.release()
 
     def clear(self):