From 9fe97d9effad761fa4e8489575ed0eea06d1f544 Mon Sep 17 00:00:00 2001
From: "Dennis.Glaeser" <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 9 Jul 2020 13:51:12 +0200
Subject: [PATCH] [bin][extractlinedata] raise import exception if paraview is
 not found

---
 bin/postprocessing/extractlinedata.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/postprocessing/extractlinedata.py b/bin/postprocessing/extractlinedata.py
index 56fc07e34f..51dc861925 100644
--- a/bin/postprocessing/extractlinedata.py
+++ b/bin/postprocessing/extractlinedata.py
@@ -19,8 +19,8 @@ args = vars(parser.parse_args())
 
 try:
     from paraview.simple import *
-except ImportError:
-    print("`paraview.simple` not found. Make sure using pvpython instead of python.")
+except:
+    raise ImportError("`paraview.simple` not found. Make sure using pvpython instead of python.")
 
 # import locations
 outDirectory = args['outputDirectory']
-- 
GitLab