From 32f9e7f9d86288090146d5184888043d3a594f4a Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 1 Apr 2015 14:43:34 +0000 Subject: [PATCH] now giving just a 'Remark' when h5py is not found --- lib/damask/result.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/damask/result.py b/lib/damask/result.py index b36d8e782..e65fa2afe 100644 --- a/lib/damask/result.py +++ b/lib/damask/result.py @@ -7,8 +7,8 @@ import sys try: import h5py -except: - sys.stderr.write('Could not import h5py.\n') +except (ImportError) as e: + sys.stderr.write('\nREMARK: h5py module not available \n\n') class Result(): '''