From 7f09c90c7db51763f263d2ec43b3cca8cd9cd3ef Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 26 May 2020 06:39:11 +0200 Subject: [PATCH] different h5py versions seem to throw different errors --- python/damask/_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_result.py b/python/damask/_result.py index 021b66d4a..d0f437d72 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -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()