Skip to content

Commit 648dc1e

Browse files
committed
FIX: do not try to display a pytables.File if it is closed
1 parent a1582d2 commit 648dc1e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎larray_editor/arrayadapter.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,6 +2848,8 @@ class PyTablesFileAdapter(AbstractColumnarAdapter):
28482848
_COLNAMES = ['Name']
28492849

28502850
def __init__(self, data, attributes):
2851+
if not data.isopen:
2852+
raise ValueError('file is already closed')
28512853
super().__init__(data=data, attributes=attributes)
28522854

28532855
def shape2d(self):

0 commit comments

Comments
 (0)