From 8b5dc634947199cd663bddd6006da914db4eddcc Mon Sep 17 00:00:00 2001
From: Andi Gerken <andi.gerken@gmail.com>
Date: Tue, 23 Feb 2021 20:03:48 +0100
Subject: [PATCH] Minifix is -> ==

---
 src/robofish/io/file.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/robofish/io/file.py b/src/robofish/io/file.py
index b3aad36..669c05c 100644
--- a/src/robofish/io/file.py
+++ b/src/robofish/io/file.py
@@ -130,7 +130,7 @@ class File(h5py.File):
 
     def __exit__(self, type, value, traceback):
         # Check if the context was left under normal circumstances
-        if (type, value, traceback) is (None, None, None):
+        if (type, value, traceback) == (None, None, None):
             self.validate()
             self.close()
 
-- 
GitLab