diff --git a/bin/postprocessing/extractlinedata.py b/bin/postprocessing/extractlinedata.py index 56fc07e34f96911150e133798f3622bc3dae957a..51dc8619250772d7b483825379d0c91a768b394f 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']