different h5py versions seem to throw different errors
This commit is contained in:
parent
6f7c7005b0
commit
7f09c90c7d
|
@ -1045,7 +1045,7 @@ class Result:
|
|||
creator = 'damask.Result.{} v{}'.format(dataset.attrs['Creator'].decode(),version)
|
||||
dataset.attrs['Creator'] = creator.encode()
|
||||
|
||||
except OSError as err:
|
||||
except (OSError,RuntimeError) as err:
|
||||
print('Could not add dataset: {}.'.format(err))
|
||||
lock.release()
|
||||
|
||||
|
|
Loading…
Reference in New Issue