different h5py versions seem to throw different errors

This commit is contained in:
Martin Diehl 2020-05-26 06:39:11 +02:00
parent 6f7c7005b0
commit 7f09c90c7d
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ class Result:
creator = 'damask.Result.{} v{}'.format(dataset.attrs['Creator'].decode(),version) creator = 'damask.Result.{} v{}'.format(dataset.attrs['Creator'].decode(),version)
dataset.attrs['Creator'] = creator.encode() dataset.attrs['Creator'] = creator.encode()
except OSError as err: except (OSError,RuntimeError) as err:
print('Could not add dataset: {}.'.format(err)) print('Could not add dataset: {}.'.format(err))
lock.release() lock.release()